input number select value when is zero
gitea/salix/dev This commit looks good
Details
gitea/salix/dev This commit looks good
Details
This commit is contained in:
parent
3fbdd3a186
commit
1dd8fdd96b
|
@ -44,11 +44,12 @@ export default class InputNumber extends Input {
|
|||
* @param {Number} value - Value
|
||||
*/
|
||||
set value(value) {
|
||||
if (!this.hasOwnProperty('_value') && value)
|
||||
this.hasValue = !(value === null || value === undefined || value === '');
|
||||
|
||||
if (!this.hasOwnProperty('_value') && this.hasValue)
|
||||
this.input.value = value;
|
||||
|
||||
this._value = value;
|
||||
this.hasValue = !(value === null || value === undefined || value === '');
|
||||
|
||||
if (this.hasValue)
|
||||
this.element.classList.add('not-empty');
|
||||
|
|
Loading…
Reference in New Issue