Skip to content

Commit 69111a4

Browse files
committed
Merged PR 20662: fixing dashboard interactions
this fix fixes all dashboard interactions
1 parent b42d3a9 commit 69111a4

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

demo/v2-demo/scripts/function_mapping.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,10 @@ function IsNotSupported(funcName) {
4848
}
4949

5050
// Get a reference to the embedded element
51-
var embed = powerbi.get($('#embedContainer')[0]);
51+
const dashboardRegEx = /Dashboard/
52+
const dashboardMatch = funcName.match(dashboardRegEx)
53+
var container = dashboardMatch ? '#dashboardContainer' : '#embedContainer';
54+
var embed = powerbi.get($(container)[0]);
5255
if (embed.config.type !== 'create') {
5356
return false;
5457
}

dist/powerbi.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)