Skip to content

Commit 1a47dbd

Browse files
committed
working around a nasty WebKit DOM bug
1 parent 7052615 commit 1a47dbd

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/traces/parcoords/base_plot.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,13 @@ exports.toSVG = function(gd) {
6969

7070
imageRoot.selectAll('*').remove();
7171
canvases.each(canvasToImage);
72+
73+
// Chrome / Safari bug workaround - browser apparently loses connection to the defined pattern
74+
// Without the workaround, these browsers 'lose' the filter brush styling (color etc.) after a snapshot
75+
// on a subsequent interaction.
76+
// Firefox works fine without this workaround
77+
window.setTimeout(function() {
78+
d3.selectAll('#filterBarPattern')
79+
.attr('id', 'filterBarPattern');
80+
}, 0);
7281
};

0 commit comments

Comments
 (0)