Commit ea7bcb7accf29fcf54eae83376cb01624eb6f6b8

Authored by Aresn
Committed by GitHub
2 parents e8c7b388 751d5c94

Merge pull request #4072 from funnycoderstar/2.0

fix: #4048
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/components/input/input.vue
... ... @@ -246,7 +246,7 @@
246 246 },
247 247 handleInput (event) {
248 248 let value = event.target.value;
249   - if (this.number) value = Number.isNaN(Number(value)) ? value : Number(value);
  249 + if (this.number && value !== '') value = Number.isNaN(Number(value)) ? value : Number(value);
250 250 this.$emit('input', value);
251 251 this.setCurrentValue(value);
252 252 this.$emit('on-change', event);
... ...