microsoft / microsoft/powerbi-visuals-api
IDialogHost.close() method stopped working in the cloud Power Bi service
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 108
- Forks
- 48
- PR merge metrics
- No merged PRs in 30d
Description
Hello everyone
I have some custom visuals that use IDialogHost api to display content in a dialog, as described in the official documentation here.
In my code, at certain points I use the following API call to close the dialog box programmatically:
this.host.close(DialogAction.Cancel);
This has always worked without issues (as long as you wait at least five seconds after the dialog has opened, as detailed in the docs, which I am).
However, recently we've been receiving support requests from users reporting that the dialog box in our visual did not close when they should. Initially this was limited to a few users in specific regions and we suspected some problem in our code or their browser, but it gradually spread and now it doesn't work for anyone.
I've tested the code, and I can confirm that the instruction gets called, and I don't get any errors or exceptions. This seems to be a generalized problem with this API, related to the Power Bi service itself.
Can anyone confirm if they're having this issue? Is there any known workaround?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the IDialogHost.close(DialogAction.Cancel) call and compare the behavior with the official dialog-box documentation linked in the report. Reproduce the issue in the cloud Power BI service, checking whether the call is reached without errors; done means identifying a confirmed service-side cause or a documented workaround.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- api
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100