Skip to content

Commit

Permalink
fix(Slider): lower value updated to max value
Browse files Browse the repository at this point in the history
  • Loading branch information
endv-bogdanb committed Apr 23, 2024
1 parent df348b7 commit 357aafb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/beeq/src/components/slider/bq-slider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export class BqSlider {
};

private calculateMinValue = (value: TSliderValue) => {
const isMaxValue = (this.maxValue ?? value[1]) === this.max;
const isMaxValue = (this.minValue ?? value[0]) === this.max;
const isGapExceeded = value[0] + this.gap > this.max;
// Make sure that the min value gets adjusted according to the gap value
return isMaxValue || isGapExceeded ? this.max - this.gap : value[0];
Expand Down

0 comments on commit 357aafb

Please sign in to comment.