-
-
Notifications
You must be signed in to change notification settings - Fork 498
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
Focus is lost when showSelectionBarFromValue-option changes #411
Comments
Could you please provide a demo showing the issue? However, if it is what I think, then it's "normal": when an option is changed, the slider is fully re-rendered and thus the focus is lost... |
Closing as there was no answers for 10 days. |
Ah, sorry! I had completely forgot about this issue, my bad! EDIT: I've got the demo to work, to illustrate the problem: http://jsfiddle.net/tr8z52mw/1/ |
Yes I totally understand your issue. However, I think that for now redrawing the slider when an option change is the safest/easiest way to handle that. For your specific issue, a specific behavior could be added to refocus the correct element after a rerender if one was focused before. Do you want to provide a pull request for it, I can help and guide you if you want? |
Even if I'm not really active anymore on this project, I'm still enthusiast so I already wrote a solution... 😄 I could reproduce your issue but not exactly like you described: after rerender, the element is still focus but can't be moved with the slider... Where you totally losing the focus? If yes, on which browser? |
Steps to reproduce
showSelectionBarFromValue
.Expected behaviour
Changing the
showSelectionBarFromValue
(or any other options this might be a problem for) should not cause loss of focus for the slider.Actual behaviour
The watcher triggers and focus is lost from the slider when the
showSelectionBarFromValue
is changed. One has to focus something else and the refocus the slider to regain focus. But changing it again causes loss of focus.The text was updated successfully, but these errors were encountered: