Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: added reset before embeding #13

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

GMProg
Copy link

@GMProg GMProg commented Jun 17, 2024

Added reset before embeding, there was an issue where an already embeded/bootstrapped element could not be re-embeded, this is due to an error/limitation in the "powerbi-client" package, where the Embed class's "load" function call fails with the following error: "DOMException: Failed to execute 'postMessage' on 'Window': # could not be cloned."
The package's wiki mentions this in the limitations section, to call "reset" before changing any configuration.

Update: This is due to the fact that the iframe becomes a cross-origin frame when bootstrapped/embeded, so it cannot be modified or serialized.

https://github.com/microsoft/PowerBI-JavaScript/wiki/Bootstrap-For-Better-Performance/33507b77a8c6f028ce9e0231ae27a97fd6f4866c

@GMProg
Copy link
Author

GMProg commented Jun 17, 2024

@microsoft-github-policy-service agree

@KotanaSai21
Copy link
Contributor

Hello @GMProg ,

We were not able to reproduce this issue. Could you please provide repro steps, so we can understand about the issue and the resolution provided by you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants