Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 694d55b

Browse files
authored
Merge pull request #7487 from plotly/fix-colorbarTitleText-case
fix edit colorbarTitleText
2 parents 1d548e3 + 1d6351c commit 694d55b

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)

AltStyle によって変換されたページ (->オリジナル) /