Skip to content

Commit

Permalink
Check for range
Browse files Browse the repository at this point in the history
  • Loading branch information
Jade-GG committed Feb 5, 2024
1 parent 064c20e commit aaa6165
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions packages/vue/src/components/range/DynamicRangeSlider.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = () => {
Expand Down

0 comments on commit aaa6165

Please sign in to comment.