input-number
input-number copied to clipboard
should getValidValue after toNumber
should getValidValue after toNumber
getCurrentValidValue(value) {
let val = value;
if (val === '') {
val = '';
} else if (!this.isNotCompleteNumber(val)) {
val = this.getValidValue(val);
} else {
val = this.state.value;
}
return this.toNumber(val);
}
Any buggy demo?