Skip to content

Commit 875e710

Browse files
committed
fix(material/slider): keep ios safari slider value binding in sync (#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)
1 parent 19fa9b8 commit 875e710

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/material/slider/slider-input.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -375,14 +375,14 @@ export class MatSliderThumb implements _MatSliderThumb, OnDestroy, ControlValueA
375375
this._slider._getThumb(this.thumbPosition)._hostElement.getBoundingClientRect(),
376376
);
377377

378-
if (isCursorOnSliderThumb) {
379-
this._isActive = true;
380-
}
381-
} else {
382-
this._isActive = true;
383-
this._setIsFocused(true);
378+
this._isActive = isCursorOnSliderThumb;
379+
this._updateWidthActive();
380+
this._slider._updateDimensions();
381+
return;
384382
}
385383

384+
this._isActive = true;
385+
this._setIsFocused(true);
386386
this._updateWidthActive();
387387
this._slider._updateDimensions();
388388

0 commit comments

Comments
 (0)