Skip to content

Commit 58f402a

Browse files
committed
Reactivating editing plot title [882]
1 parent 984aa46 commit 58f402a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/components/titles/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@ function draw(gd, titleClass, options) {
8181
// only make this title editable if we positively identify its property
8282
// as one that has editing enabled.
8383
var editAttr;
84-
// TODO 882 Probably compare against 'title.text' and may also adapt calling code?
85-
if(prop === 'title') editAttr = 'titleText';
84+
if(prop === 'title.text') editAttr = 'titleText';
8685
else if(prop.indexOf('axis') !== -1) editAttr = 'axisTitleText';
8786
else if(prop.indexOf('colorbar' !== -1)) editAttr = 'colorbarTitleText';
8887
var editable = gd._context.edits[editAttr];

0 commit comments

Comments
 (0)