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

Commit

Permalink
fix(slider): reposition when min or max is updated
Browse files Browse the repository at this point in the history
Closes #799. Closes #800.
  • Loading branch information
PaulMougel authored and ajoslin committed Dec 1, 2014
1 parent 9406981 commit bd6478b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/slider/slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,12 @@ function SliderController($scope, $element, $attrs, $$rAF, $window, $mdAria, $md
function updateMin(value) {
min = parseFloat(value);
$element.attr('aria-valuemin', value);
updateAll();
}
function updateMax(value) {
max = parseFloat(value);
$element.attr('aria-valuemax', value);
updateAll();
}
function updateStep(value) {
step = parseFloat(value);
Expand Down

0 comments on commit bd6478b

Please sign in to comment.