Skip to content
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

roundSlider problem when setting a value programmatically #18

Closed
rolandschuetz opened this issue Jan 7, 2016 · 3 comments
Closed

roundSlider problem when setting a value programmatically #18

rolandschuetz opened this issue Jan 7, 2016 · 3 comments
Assignees
Labels

Comments

@rolandschuetz
Copy link

I have problems setting the value programmatically.

The idea here is that we have a fixed maximum of 10, but depending on some other input values the allowed maximum might only be 8. We are simulating this is a simple function attached to the change even.

The bug can be created by setting moving the handle to 8 twice. The second time no change event is triggered and the handle doesn't snap back.

Here is a demo:
http://codepen.io/rolandschuetz/pen/PZmqwZ?editors=101

@soundar24
Copy link
Owner

Yes, i can identify your issue. This is due to a minor mistake in the source. I will consider this fix in the next version.

Upto that you can use a simple workaround to solve this. I have added a single line in the sample to resolve this issue. Check the below updated demo:
http://codepen.io/soundar24/pen/MKmabM?editors=100

In the demo I just added the below line:

this._prechange = this.options.value;

Hope it helps you.

@soundar24 soundar24 added the bug label Jan 7, 2016
@soundar24 soundar24 self-assigned this Jan 7, 2016
@rolandschuetz
Copy link
Author

Thanks, that's perfect!

@soundar24
Copy link
Owner

The reported issue was solved in version 1.2, Please check the updated demo:
http://codepen.io/soundar24/pen/WrMLGp?editors=0010

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

No branches or pull requests

2 participants