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 with ng-change displays the wrong tooltip #817

@PaulMougel

Description

@PaulMougel

When the function called by ng-change in an md-slider modifies the model's value, the tooltip displays the old value (the one that was selected by the user), and not the one that was set by the function.

<md-slider flex md-discrete min="0" max="10" ng-model="value" ng-change="stayAt5()" aria-label="Slider"></md-slider>
$scope.stayAt5 = function () {
  $scope.value = 5;
}

See this Plunker.
untitled

Edit: I have a fix, I'll send the PR as soon as possible.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions