Skip to content
This repository has been 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

Closed
PaulMougel opened this issue Dec 1, 2014 · 1 comment
Closed

Comments

@PaulMougel
Copy link
Contributor

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.

@johnrivelt
Copy link

When min value changed, there is still some issue.
https://embed.plnkr.co/tdyYHl/
In above case, when click ssd 1 to 5, top-to-bottom direction works as I expect.
But, bottom-to-top is not updating correctly.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants