Skip to content

Commit

Permalink
fix(slider): Fix IE11 bug - unset is unsupported in IE.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 415513821
  • Loading branch information
joyzhong authored and copybara-github committed Dec 10, 2021
1 parent b6510c8 commit f460e23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/mdc-slider/foundation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -828,12 +828,12 @@ export class MDCSliderFoundation extends MDCFoundation<MDCSliderAdapter> {
(isRtl && thumb !== Thumb.START);
if (trackAnimatesFromRight) {
this.adapter.setTrackActiveStyleProperty('transform-origin', 'right');
this.adapter.setTrackActiveStyleProperty('left', 'unset');
this.adapter.setTrackActiveStyleProperty('left', 'auto');
this.adapter.setTrackActiveStyleProperty(
'right', `${this.rect.width - thumbRightPos}px`);
} else {
this.adapter.setTrackActiveStyleProperty('transform-origin', 'left');
this.adapter.setTrackActiveStyleProperty('right', 'unset');
this.adapter.setTrackActiveStyleProperty('right', 'auto');
this.adapter.setTrackActiveStyleProperty('left', `${thumbLeftPos}px`);
}
this.adapter.setTrackActiveStyleProperty(
Expand Down

0 comments on commit f460e23

Please sign in to comment.