Skip to content

Commit

Permalink
fix(slider): slider repositions itself when min or max is updated
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulMougel committed Dec 1, 2014
1 parent 98c3152 commit 28c9165
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 28c9165

Please sign in to comment.