-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
Collapse animation jumps if an input field holds the focus #9836
Comments
oh yeah it's catchin the wrong transition end… interesting |
@anormal81 You can't use collapse animation when an element is focused. When you click on a collapse button — it's focus — and one focus breaks another focus. Fix: avoid clicking on collapse button when another element is focused. |
@fat Hey, any news? 👯 |
the fix is to check that the target is the collapsing element. i'll fix this now |
After fix issue, example code not work correct (collapse not work). I used data-target attribute. http://jsfiddle.net/SJ7Ug
|
Fixed after #13330. |
I have two panels with forms and input fields. A button click triggers the collapsing of the first form and the expansion of the second one. The animation works fine if no input field has focus.
Try the example at http://jsfiddle.net/ZbAsN/1/
Set the cursor into the username text box an click the "create new user" button. The panel quickly jumps to the end position. Click "cancel" to return to the first panel.
Retry the same without focus in a text box. The animation will be executed as expected.
In addition: a slower click on the "create new user" button will transfer the focus to the button before the animation starts. The result looks like the expected behaviour.
The text was updated successfully, but these errors were encountered: