Commit 4c006ad7ad7be05a05b77227510bdbfafacf3895

Authored by Aresn
Committed by GitHub
2 parents 6fe9982f 3f243f02

Merge pull request #5003 from wormwlrm/issue-5002

Fix #5002: Cannot set a Slider with InputNumber value as 0 by using InputNumber
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/components/slider/slider.vue
... ... @@ -379,7 +379,7 @@
379 379 },
380 380  
381 381 handleInputChange (val) {
382   - this.currentValue = [val || this.min, this.currentValue[1]];
  382 + this.currentValue = [val === 0 ? 0 : val || this.min, this.currentValue[1]];
383 383 this.emitChange();
384 384 },
385 385  
... ...