Skip to content

Commit

Permalink
Fix: Ensure valueMin and valueMax properties are updated when slider …
Browse files Browse the repository at this point in the history
…thumbs are moved
  • Loading branch information
7evenk committed Jun 20, 2024
1 parent 19bb8a6 commit 688c392
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/slider/SliderWebcomponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,8 @@ export class SliderWebcomponent extends BaseCustomWebComponentConstructorAppend
// Update input values and range progress
this._inputs[0].value = minVal.toString();
this._inputs[1].value = maxVal.toString();
this.valueMin = minVal;
this.valueMax = maxVal;
rangevalue.style.left = `${(minVal / parseInt(this._rangeInputs[0].max)) * 100}%`;
rangevalue.style.right = `${100 - (maxVal / parseInt(this._rangeInputs[1].max)) * 100}%`;
}
Expand Down

0 comments on commit 688c392

Please sign in to comment.