Initialize fieldValidator with null instead of false

This commit is contained in:
Benoit Rapidel 2020-11-09 18:48:36 +01:00
parent bed984f5a9
commit 04f75fc30d

View file

@ -41,7 +41,7 @@ class Input extends Canvas {
this.stringValue = ''
this.focused = false
this.tabKeyBlur = false
this.fieldValidator = false
this.fieldValidator = null
if (this.getProp('vertical')) this.widget.classList.add('vertical')
if (this.getProp('align') === 'left') this.widget.classList.add('left')