Skip to content

Commit 595deef

Browse files
authored
fix: title text cannot be edited (regression since v3.0.0)
1 parent bddbb14 commit 595deef

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/components/colorbar/draw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ function drawColorBar(g, opts, gd) {
326326
function drawTitle(titleClass, titleOpts) {
327327
var dfltTitleOpts = {
328328
propContainer: ax,
329-
propName: opts._propPrefix + 'title',
329+
propName: opts._propPrefix + 'title.text',
330330
traceIndex: opts._traceIndex,
331331
_meta: opts._meta,
332332
placeholder: fullLayout._dfltTitle.colorbar,

src/components/rangeslider/draw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ module.exports = function(gd) {
212212
if(axisOpts.side === 'bottom') {
213213
Titles.draw(gd, axisOpts._id + 'title', {
214214
propContainer: axisOpts,
215-
propName: axisOpts._name + '.title',
215+
propName: axisOpts._name + '.title.text',
216216
placeholder: fullLayout._dfltTitle.x,
217217
attributes: {
218218
x: axisOpts._offset + axisOpts._length / 2,

src/plots/polar/polar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ proto.updateRadialAxisTitle = function(fullLayout, polarLayout, _angle) {
560560
var cx = _this.cx;
561561
var cy = _this.cy;
562562
var radialLayout = _this.getRadial(polarLayout);
563-
var titleClass = _this.id + 'title';
563+
var titleClass = _this.id + 'title.text';
564564

565565
var pad = 0;
566566

src/plots/ternary/ternary.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ proto.drawAxes = function(doTitles) {
375375

376376
layers['a-title'] = Titles.draw(gd, 'a' + titlesuffix, {
377377
propContainer: aaxis,
378-
propName: _this.id + '.aaxis.title',
378+
propName: _this.id + '.aaxis.title.text',
379379
placeholder: _(gd, 'Click to enter Component A title'),
380380
attributes: {
381381
x: _this.x0 + _this.w / 2,
@@ -385,7 +385,7 @@ proto.drawAxes = function(doTitles) {
385385
});
386386
layers['b-title'] = Titles.draw(gd, 'b' + titlesuffix, {
387387
propContainer: baxis,
388-
propName: _this.id + '.baxis.title',
388+
propName: _this.id + '.baxis.title.text',
389389
placeholder: _(gd, 'Click to enter Component B title'),
390390
attributes: {
391391
x: _this.x0 - bpad,
@@ -395,7 +395,7 @@ proto.drawAxes = function(doTitles) {
395395
});
396396
layers['c-title'] = Titles.draw(gd, 'c' + titlesuffix, {
397397
propContainer: caxis,
398-
propName: _this.id + '.caxis.title',
398+
propName: _this.id + '.caxis.title.text',
399399
placeholder: _(gd, 'Click to enter Component C title'),
400400
attributes: {
401401
x: _this.x0 + _this.w + bpad,

0 commit comments

Comments
 (0)