Skip to content

Commit e526042

Browse files
committed
fix vanishing titles issue
1 parent e7f69c9 commit e526042

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/titles/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,7 @@ Titles.draw = function(gd, titleClass, options) {
192192
opacity = 0;
193193
isplaceholder = true;
194194
txt = placeholderText;
195-
fullLayout._infolayer.select('.' + titleClass)
196-
.attr({'data-unformatted': txt})
195+
el.attr({'data-unformatted': txt})
197196
.text(txt)
198197
.on('mouseover.opacity', function() {
199198
d3.select(this).transition()
@@ -207,6 +206,7 @@ Titles.draw = function(gd, titleClass, options) {
207206

208207
if(gd._context.editable) {
209208
if(!txt) setPlaceholder();
209+
else el.on('.opacity', null);
210210

211211
el.call(svgTextUtils.makeEditable)
212212
.on('edit', function(text) {

0 commit comments

Comments
 (0)