Open weirdyang opened 9 months ago
It's hard to say what could be the cause, but 2 observations for a start:
Hope this helps.
ahh thanks, I was using the demo code sandbox , wasn't aware it was outdated, will try both of your suggestions
yes, I am, so I moved the opening of the popup into the image onload event handler.
I've since then added a timeout of 200, and that seems to have resolved it
Hi,
I'm trying to display the image with the
popup
display, I noticed sometimes the image is not rendered, and I would need to do a window resize for it to appear.I'm not quite sure what is happening as it happen intermittently, I thought it might be due to the image src not being fully loaded so I added an load event handler, however it does not resolve the issue.
It seems the images are loaded with width = 0 when it is rendered in the editor:
Am I initializing it incorrectly? Any help is appreciated, thanks.
Here's my sandbox https://codesandbox.io/s/66q54x