Skip to content

Commit

Permalink
Merge pull request #2250 from Jade-GG/patch-2
Browse files Browse the repository at this point in the history
Check for invalid range in DynamicRangeSlider (Vue)
  • Loading branch information
mohdashraf010897 authored Nov 21, 2023
2 parents 85da4c4 + 7c0be69 commit 09fec0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vue/src/components/range/DynamicRangeSlider.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ const DynamicRangeSlider = {
},

render() {
if (!this.range || !this.currentValue) {
if (!this.range || !this.currentValue || this.range.start === null || this.range.end === null || this.range.start === this.range.end) {
return null;
}
const { start, end } = this.range;
Expand Down

0 comments on commit 09fec0b

Please sign in to comment.