Skip to content

Commit 9319e2e

Browse files
author
anaplian
committed
Fix issue where styles weren't reset when re-using SVGs in colorbar
Fixes #5161
1 parent 7f6650b commit 9319e2e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/colorbar/draw.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,7 @@ function drawColorBar(g, opts, gd) {
397397

398398
var fills = g.select('.' + cn.cbfills)
399399
.selectAll('rect.' + cn.cbfill)
400+
.attr('style', '')
400401
.data(fillLevels);
401402
fills.enter().append('rect')
402403
.classed(cn.cbfill, true)

0 commit comments

Comments
 (0)