Skip to content

Commit

Permalink
fix(material/slider): keep ios safari slider value binding in sync (#…
Browse files Browse the repository at this point in the history
…27701)

* fix(material/slider): keep ios safari slider value binding in sync

* fixup! fix(material/slider): keep ios safari slider value binding in sync

(cherry picked from commit 291b9db)
  • Loading branch information
wagnermaciel committed Aug 24, 2023
1 parent 19fa9b8 commit 875e710
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/material/slider/slider-input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -375,14 +375,14 @@ export class MatSliderThumb implements _MatSliderThumb, OnDestroy, ControlValueA
this._slider._getThumb(this.thumbPosition)._hostElement.getBoundingClientRect(),
);

if (isCursorOnSliderThumb) {
this._isActive = true;
}
} else {
this._isActive = true;
this._setIsFocused(true);
this._isActive = isCursorOnSliderThumb;
this._updateWidthActive();
this._slider._updateDimensions();
return;
}

this._isActive = true;
this._setIsFocused(true);
this._updateWidthActive();
this._slider._updateDimensions();

Expand Down

0 comments on commit 875e710

Please sign in to comment.