Skip to content

Commit 2616f1b

Browse files
committed
Merge remote-tracking branch 'origin/master' into cam/7473/update-legend-maxheight-logic
2 parents e4d4672 + 694d55b commit 2616f1b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

draftlogs/7487_fix.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Fix edit colorbar title [7487](https://github.com/plotly/plotly.js/pull/7487)

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)