From 7e517f4bc27dd9b19231223c000abf546fee0a40 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Mon, 5 Mar 2018 22:28:41 +0100 Subject: [PATCH] text: use "default" prop instead of "value" to define default value (#195) --- src/browser/js/app/widgets/plots/text.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/browser/js/app/widgets/plots/text.js b/src/browser/js/app/widgets/plots/text.js index f3af847a..9b5ce351 100644 --- a/src/browser/js/app/widgets/plots/text.js +++ b/src/browser/js/app/widgets/plots/text.js @@ -56,7 +56,7 @@ module.exports = class Text extends Widget { if (this.getProp('align') === 'right') this.widget.classList.add('right') if (this.getProp('wrap')) this.widget.classList.add('wrap') - this.defaultValue = this.getProp('value') || ( this.getProp('label')===false ? + this.defaultValue = this.getProp('default') || ( this.getProp('label')===false ? this.getProp('id'): this.getProp('label')=='auto'? this.getProp('id'):