Skip to content

Commit 2c5ea3d

Browse files
committed
fix edit colorbarTitleText
1 parent 7a0fa22 commit 2c5ea3d

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
@@ -22,7 +22,7 @@ var SUBTITLE_PADDING_EM = 1.6;
2222
* @param {DOM element} gd - the graphDiv
2323
* @param {string} titleClass - the css class of this title
2424
* @param {object} options - how and what to draw
25-
* propContainer - the layout object containing the `title` attribute that
25+
* propContainer - the layout object containing the `title` attribute that
2626
* applies to this title
2727
* propName - the full name of the title property (for Plotly.relayout)
2828
* [traceIndex] - include only if this property applies to one trace
@@ -102,7 +102,7 @@ function draw(gd, titleClass, options) {
102102
var editAttr;
103103
if(prop === 'title.text') editAttr = 'titleText';
104104
else if(prop.indexOf('axis') !== -1) editAttr = 'axisTitleText';
105-
else if(prop.indexOf('colorbar' !== -1)) editAttr = 'colorbarTitleText';
105+
else if(prop.indexOf('colorbar') !== -1) editAttr = 'colorbarTitleText';
106106
var editable = gd._context.edits[editAttr];
107107

108108
function matchesPlaceholder(text, placeholder) {

0 commit comments

Comments
 (0)