-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Promises from images never resolving in IE11 #1685
Comments
Thanks for the report. I'm a little confused. If I understand correctly: IE11 doesn't trigger a |
Yes, on this line the
|
Ok. Is that a known IE11 bug? Can that be reproduced outside of plotly.js? |
It appears its a problem with IE11, some more details on stack overflow - Trap the “Image” loading event on an SVG element in IE11 |
Yikes. Something like http://stackoverflow.com/a/40082216/4068492 sounds more robust. |
Yea I saw that post, we're already doing something similar, thought we could add the resolve call at the bottom of this function:
|
@etpinard do you run your tests in different browsers in CI? I'm trying to add a failing test for this but it would basically be pointless if tests are never run in IE11 |
hi @etpinard I have a pull request to my own fork. Do you mind giving it a review? |
See plotly#1685 for details
fixed in #1691 |
I have a chart with a watermark configured, the image is configured in the layout so that it is rendered in the
g.layer-above g.imagelayer
div. The image loads and renders fine. The problem is that the promise returned from thenewPlot
function never resolves when using IE11.I've narrowed it down to this line where the
load
event never fires:I expect doing something like this is what was intended:
Would you be willing to accept a pull request?
The text was updated successfully, but these errors were encountered: