We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e58dcb0 + 310f762 commit a729accCopy full SHA for a729acc
1 file changed
src/components/images/draw.js
@@ -99,11 +99,15 @@ module.exports = function draw(gd) {
99
var dataURL = canvas.toDataURL('image/png');
100
101
thisImage.attr('xlink:href', dataURL);
102
+
103
+ // resolve promise in onload handler instead of on 'load' to support IE11
104
+ // see https://github.com/plotly/plotly.js/issues/1685
105
+ // for more details
106
+ resolve();
107
};
108
109
110
thisImage.on('error', errorHandler);
- thisImage.on('load', resolve);
111
112
img.src = d.source;
113
0 commit comments