Skip to content

Commit 688c392

Browse files
committed
Fix: Ensure valueMin and valueMax properties are updated when slider thumbs are moved
1 parent 19bb8a6 commit 688c392

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/slider/SliderWebcomponent.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,8 @@ export class SliderWebcomponent extends BaseCustomWebComponentConstructorAppend
228228
// Update input values and range progress
229229
this._inputs[0].value = minVal.toString();
230230
this._inputs[1].value = maxVal.toString();
231+
this.valueMin = minVal;
232+
this.valueMax = maxVal;
231233
rangevalue.style.left = `${(minVal / parseInt(this._rangeInputs[0].max)) * 100}%`;
232234
rangevalue.style.right = `${100 - (maxVal / parseInt(this._rangeInputs[1].max)) * 100}%`;
233235
}

0 commit comments

Comments
 (0)