From 9248ab8ea9f4ea011cc5fcb9c938a603c845319f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Tue, 31 May 2022 12:37:18 +0300 Subject: [PATCH] Fixed #2104 - [BUG] Range slider cannot be set to [min, min] --- src/components/slider/Slider.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/slider/Slider.vue b/src/components/slider/Slider.vue index 046f8e8bf6..5339cce6f6 100755 --- a/src/components/slider/Slider.vue +++ b/src/components/slider/Slider.vue @@ -312,7 +312,7 @@ export default { return 0; }, rangeEndPosition() { - if (this.modelValue && this.modelValue[1]) + if (this.modelValue && this.modelValue.length === 2) return (this.modelValue[1] > this.max ? 100 : this.modelValue[1] - this.min) * 100 / (this.max - this.min); else return 100;