text: use "default" prop instead of "value" to define default value (#195)
This commit is contained in:
parent
169ece4780
commit
7e517f4bc2
1 changed files with 1 additions and 1 deletions
|
|
@ -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'):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue