Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Closed
@mykyta-shulipa

Description

@mykyta-shulipa

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();
    });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions