Skip to content

Bug with updating value in parent scope when using range #93

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mykyta-shulipa opened this issue Jul 27, 2015 · 1 comment
Closed

Bug with updating value in parent scope when using range #93

mykyta-shulipa opened this issue Jul 27, 2015 · 1 comment

Comments

@mykyta-shulipa
Copy link

Steps to reproduce:

  1. go to the http://rzajac.github.io/angularjs-slider/
  2. manually update first slider: min value to new position(e.g. 308), and max value to the same position (308). Numbers here is just an example, the restrictions are: min and max should be the same and it will be different from previous values

Expected result:
model values in inputs should match (in my example both equal to 308)

Actual result:
model values isn't match

only when you try to move another slider, model values will updated

Screenshot:
screen shot 2015-07-27 at 5 34 38 pm

Workaround which I found for now is to force $digest using slideEnded event in parent scope, e.g.

    $scope.$on("slideEnded", function() {
        $scope.$digest();
    });
@ValentinH
Copy link
Member

Again, well spotted!

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

No branches or pull requests

2 participants