mirror of https://github.com/ElemeFE/element
input-number:fix user input parsing when inputing
parent
649670c55a
commit
0f86321f64
|
@ -253,7 +253,7 @@
|
||||||
this.currentValue = newVal;
|
this.currentValue = newVal;
|
||||||
},
|
},
|
||||||
handleInput(value) {
|
handleInput(value) {
|
||||||
this.userInput = value;
|
this.userInput = value.replace(/[^\d|.]/g, '');
|
||||||
},
|
},
|
||||||
handleInputChange(value) {
|
handleInputChange(value) {
|
||||||
const newVal = value === '' ? undefined : Number(value);
|
const newVal = value === '' ? undefined : Number(value);
|
||||||
|
|
Loading…
Reference in New Issue