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

md-slider with ng-change displays the wrong tooltip #817

Closed
PaulMougel opened this issue Dec 2, 2014 · 4 comments
Closed

md-slider with ng-change displays the wrong tooltip #817

PaulMougel opened this issue Dec 2, 2014 · 4 comments
Assignees
Milestone

Comments

@PaulMougel
Copy link
Contributor

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.

@PaulMougel
Copy link
Contributor Author

Added PR #820 that fixes the issue.

@ThomasBurleson ThomasBurleson added this to the 0.7.0-rc1 milestone Dec 2, 2014
@marcysutton
Copy link
Contributor

This is a duplicate of #791

@robertmesserle
Copy link
Contributor

This is resolved by PR #820

@jonasantonelli
Copy link

I just changed the visual value

.md-sign
{
        &:before
        {
            content:'s';
            color:#fff;
            font-size: 12px;
            font-weight: bold;
            order:2;
        }
}

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

No branches or pull requests

6 participants