cancel
Showing results for 
Search instead for 
Did you mean: 

Context menu does not disappear when changing report page on Power BI Embedded

Steps to reproduce:

 

setTimeout(async () => {
    console.log("test");
    try {
        const pages = await report.getPages();
        await pages[3].setActive();
        console.log("Active page was set to: \"" + pages[3].displayName + "\"");
    }
    catch (errors) {
        console.log(errors);
    }
}, 5000);​

 

  • Click "Run".
  • Within 5 seconds after run, open context menu on some visual.screen-1.png
  • After 5 seconds, report page will be changed from "Marker Share" to "Sentiment" but the context menu will remain.screen-2.png
  • Actions invoked on that context menu will affect visual on previous not active page "Marker Share". Click e.g. option to show results as a table.
  • Manually activate "Marker Share" page (at the bottom).
  • You will see that action invoked on "Sentiment" page has affected a visual on "Marker Share" page.screen-3.png

Is there any way to close context menu while changing report pages?

Status: Investigating

Hi @dtkri,

 

Sorry, but I couldn’t reproduce this issue. If you wait until the new report page loaded and make sure you open the context menu after that, will you see this issue either?

 

Best Regards,

Community Support Team _ Caiyun

Comments
v-cazheng-msft
Community Support
Status changed to: Investigating

Hi @dtkri,

 

Sorry, but I couldn’t reproduce this issue. If you wait until the new report page loaded and make sure you open the context menu after that, will you see this issue either?

 

Best Regards,

Community Support Team _ Caiyun

dtkri
Regular Visitor

Hi,

 

If you wait until the new report page is loaded and make sure you open the context menu after that, then the issue does not appear.

 

The problem appears when you open a context menu and then cahnge the page programatically (from JavasScript code, not by clicking a page button at the bottom). The context menu opened for a given page is still open after switching programatically to another page.

 

Best regards,

@dtkri 

dtkri
Regular Visitor

Hi @v-cazheng-msft,

 

Did you manage to reproduce it?

 

Best regards,

@dtkri