Skip to content

Commit 4e752fb

Browse files
committed
Add data-bb removal code to svg_text_utils
1 parent d7124f4 commit 4e752fb

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/lib/svg_text_utils.js

+3
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ util.convertToTspans = function(_context, _callback){
8080
parent.selectAll('svg.' + svgClass).remove();
8181
parent.selectAll('g.' + svgClass + '-group').remove();
8282
_context.style({visibility: null});
83+
for(var up = _context.node(); up && up.removeAttribute; up = up.parentNode) {
84+
up.removeAttribute('data-bb');
85+
}
8386

8487
function showText() {
8588
if(!parent.empty()){

src/plot_api/plot_api.js

-1
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,6 @@ Plotly.plot = function(gd, data, layout, config) {
381381
// so mark it as done and let other procedures call a replot
382382
Lib.markTime('done plot');
383383
gd.emit('plotly_afterplot');
384-
385384
}
386385

387386
var donePlotting = Lib.syncOrAsync([

0 commit comments

Comments
 (0)