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(DIST-713): Force iframe redraw onLoad #146

Merged
merged 1 commit into from
Feb 4, 2021
Merged

Conversation

maxprilutskiy
Copy link
Contributor

No description provided.

@maxprilutskiy maxprilutskiy requested a review from a team February 4, 2021 12:04
@jenkins-tf
Copy link
Collaborator

this.props.onLoad && this.props.onLoad(this.iframeRef)
async handleLoad() {
this.props.onLoad(this.iframeRef)
await this.triggerIframeRedraw()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

won't this.forceUpdate() just work for that?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's about asking the browser to redraw the iframe, rather than asking react to rerender

@maxprilutskiy maxprilutskiy merged commit 1c675a0 into master Feb 4, 2021
@maxprilutskiy maxprilutskiy deleted the fix/DIST-713 branch February 4, 2021 12:37
jenkins-tf pushed a commit that referenced this pull request Feb 4, 2021
## [0.34.2](v0.34.1...v0.34.2) (2021-02-04)

### Bug Fixes

* **DIST-713:** Force iframe redraw onLoad ([#146](#146)) ([1c675a0](1c675a0))
@jenkins-tf
Copy link
Collaborator

🎉 This PR is included in version 0.34.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@maxprilutskiy maxprilutskiy restored the fix/DIST-713 branch February 4, 2021 12:59
@maxprilutskiy maxprilutskiy deleted the fix/DIST-713 branch February 4, 2021 13:00
@mathio mathio added the v0 label Apr 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants