Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

md-slider doesn't update its position when max or min is updated #799

@PaulMougel

Description

@PaulMougel

When the max value of an md-slider is updated, the horizontal position of the slider isn't updated:

<!-- index.html -->
<md-slider flex min="0" max="{{max}}" ng-model="value"></md-slider>
<md-button ng-click="doubleMax()">Double max!</md-button>
// index.js
$scope.doubleMax = function () {
  $scope.max *= 2
}

See this Plunker. If I double the maximum value for the slider, it doesn't move to reflect the modification. However, when I try to move it (using the keyboard for instance), then it moves in the right position.
untitled

Tested on Chrome, Firefox and Safari.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions