Skip to content
This repository has been archived by the owner on May 25, 2019. It is now read-only.

Setting both values of range slider to maximum value, locks the slider #49

Closed
ifours opened this issue Jun 5, 2014 · 2 comments
Closed

Comments

@ifours
Copy link

ifours commented Jun 5, 2014

The slider handles are locked, after setting both values of range slider to the maximum value. It's jquery ui bug: http://bugs.jqueryui.com/ticket/10091. But you can use following hack for temporary fix: at ngModel.$render method after elm.slider(method, ngModel.$viewValue); just add options.range === true ? elm.slider(method, 0, ngModel.$viewValue[0]) : angular.noop(); or something like that.

@johnparn
Copy link
Contributor

johnparn commented Jun 5, 2014

@ifours Hmm... I can't repeat that error. See the example 9 on demo page: http://angular-ui.github.io/ui-slider/demo/demo.html#ex9, that is working in Chrome.

@johnparn johnparn closed this as completed Jun 5, 2014
@ifours
Copy link
Author

ifours commented Jun 6, 2014

That's happened when you try to update slider from model value (setting both values to max). You using elm.slider(method, ngModel.$viewValue); that is the same as $( '#slider' ).slider('option', { values: [ 100, 100 ] });. How you can see here: http://jsbin.com/oyires/10/edit (third button) it's a jquery ui bug (over one year). So, using elm.slider(method, ngModel.$viewValue); can locked range slider.

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

No branches or pull requests

2 participants