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

contentDidMount is triggered at a different time than onLoad. #253

Open
Mrcxt opened this issue Feb 27, 2024 · 1 comment
Open

contentDidMount is triggered at a different time than onLoad. #253

Mrcxt opened this issue Feb 27, 2024 · 1 comment

Comments

@Mrcxt
Copy link

Mrcxt commented Feb 27, 2024

I have a situation where I need to dynamically calculate the height of an iframe after it has loaded. However, I found in the source code that contentDidMount is triggered before the srcDoc has finished loading, resulting in incorrect height calculation because the css and js have not finished loading at that time.

@ryanseddon
Copy link
Owner

Can you create a test case showing the problem

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

No branches or pull requests

2 participants