Skip to content

Commit

Permalink
fix(material/slider): safari value correction bug
Browse files Browse the repository at this point in the history
* Fixes an issue where the slider value would sometimes not get immediately corrected on
  pointerdown in safari.
* This bug only gets triggered when the user triggers a user begins dragging directly on the
  hidden native inputs slider thumb.
  • Loading branch information
wagnermaciel committed Jan 4, 2024
1 parent 05829d5 commit 95ac078
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/material/slider/slider-input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ export class MatSliderThumb implements _MatSliderThumb, OnDestroy, ControlValueA
return;
}

this.value = value;
this._setValue(value + '');
this.valueChange.emit(this.value);
this._onChangeFn?.(this.value);
this._slider._onValueChange(this);
Expand Down

0 comments on commit 95ac078

Please sign in to comment.