You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browser name and version: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Additional context
This behavior is quite non-obvious. I personally discovered this issue while writing E2E tests, as my test started failing due to the presence of two iframes instead of one.
It took me a significant amount of time to analyze and understand the root cause of this behavior.
The text was updated successfully, but these errors were encountered:
Bug Report
Describe the bug
The bug occurs when using conditional rendering:
<CldUploadWidget />
can create multiple iframes instead of just one.Is this a regression?
I'm not sure. I will check if this issue existed in previous versions and update the report accordingly."
Steps To Reproduce the error
<CldUploadWidget />
component.useEffect()
hook where:setTimeout()
or any other method.<CldUploadWidget />
component. This can be a text message, a loader, or any other UI component.Expected behaviour
I expect that when
<CldUploadWidget />
is unmounted and then re-mounted, there will be only one iframe inside the DOM tree.CodeSandbox or Live Example of Bug
Live CodeSandbox bug example
Don't forget to create .env.local with speicified variables:
Screenshot or Video Recording
Example of two iframes
Your environment
Additional context
This behavior is quite non-obvious. I personally discovered this issue while writing E2E tests, as my test started failing due to the presence of two iframes instead of one.
It took me a significant amount of time to analyze and understand the root cause of this behavior.
The text was updated successfully, but these errors were encountered: