From 2c5ea3d8c4181a56f511845af74b5c66096cfb33 Mon Sep 17 00:00:00 2001 From: Mojtaba Samimi Date: Tue, 22 Jul 2025 10:53:19 -0400 Subject: [PATCH 1/2] fix edit colorbarTitleText --- src/components/titles/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/titles/index.js b/src/components/titles/index.js index 7cbe5c33c28..6637343cdad 100644 --- a/src/components/titles/index.js +++ b/src/components/titles/index.js @@ -22,7 +22,7 @@ var SUBTITLE_PADDING_EM = 1.6; * @param {DOM element} gd - the graphDiv * @param {string} titleClass - the css class of this title * @param {object} options - how and what to draw - * propContainer - the layout object containing the `title` attribute that + * propContainer - the layout object containing the `title` attribute that * applies to this title * propName - the full name of the title property (for Plotly.relayout) * [traceIndex] - include only if this property applies to one trace @@ -102,7 +102,7 @@ function draw(gd, titleClass, options) { var editAttr; if(prop === 'title.text') editAttr = 'titleText'; else if(prop.indexOf('axis') !== -1) editAttr = 'axisTitleText'; - else if(prop.indexOf('colorbar' !== -1)) editAttr = 'colorbarTitleText'; + else if(prop.indexOf('colorbar') !== -1) editAttr = 'colorbarTitleText'; var editable = gd._context.edits[editAttr]; function matchesPlaceholder(text, placeholder) { From 1d6351c0db85ed27fa88a933ceb23f0270f1d64b Mon Sep 17 00:00:00 2001 From: Mojtaba Samimi Date: Tue, 22 Jul 2025 11:24:37 -0400 Subject: [PATCH 2/2] draft log --- draftlogs/7487_fix.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 draftlogs/7487_fix.md diff --git a/draftlogs/7487_fix.md b/draftlogs/7487_fix.md new file mode 100644 index 00000000000..b7375bd7efd --- /dev/null +++ b/draftlogs/7487_fix.md @@ -0,0 +1 @@ + - Fix edit colorbar title [7487](https://github.com/plotly/plotly.js/pull/7487)