From aaa6165bf8b4fee8275e15aa804e3f0c5bd00220 Mon Sep 17 00:00:00 2001 From: Jade Geels Date: Mon, 5 Feb 2024 14:49:55 +0100 Subject: [PATCH] Check for range --- .../vue/src/components/range/DynamicRangeSlider.jsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/packages/vue/src/components/range/DynamicRangeSlider.jsx b/packages/vue/src/components/range/DynamicRangeSlider.jsx index 85b1f8152..23ec78a42 100644 --- a/packages/vue/src/components/range/DynamicRangeSlider.jsx +++ b/packages/vue/src/components/range/DynamicRangeSlider.jsx @@ -204,12 +204,14 @@ const DynamicRangeSlider = { this.range ? Math.min(this.range.end, currentValue[1]) : currentValue[1], ]; - if (currentValue[0] === null) { - normalizedValue[0] = this.range.start - } + if(this.range) { + if (currentValue[0] === null) { + normalizedValue[0] = this.range.start + } - if (currentValue[1] === null) { - normalizedValue[1] = this.range.end + if (currentValue[1] === null) { + normalizedValue[1] = this.range.end + } } const performUpdate = () => {