-
-
Notifications
You must be signed in to change notification settings - Fork 79k
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 show/hide/toggle methods don't work while a previous animation is still running #16741
Comments
Hi @MiladSadinam! You appear to have posted a live example (https://fiddle.jshell.net/fjb5r9s5/1/show/light/), which is always a good first step. However, according to the HTML5 validator, your example has some validation errors, which might potentially be causing your issue:
You'll need to fix these errors and post a revised example before we can proceed further. (Please note that this is a fully automated comment.) |
Yes, these methods are async. You need to use the events they fire to wait for completion. |
I see what you mean. In case of my jsfiddle example I see two solutions:
Both solutions are not optimal. Perhaps there is a better solution? Like any |
Or I suppose we could add some logic similar to Line 88 in 9227631
|
Yeah, this makes the method definitely more intuitive. Thanks for the quick responses. |
Bootstrap 3 is no longer being officially developed or supported. All work has moved onto our next major release, v4. As such, this issue or pull request is being closed as a "won't fix." For additional help and support, we recommend utilizing our community resources. Thanks for your understanding, and see you on the other side of v4! <3, |
Using
ends up in state 'show'. The second
collapse()
is being ignored because the first animation is still running.https://jsfiddle.net/fjb5r9s5/2/ demonstrates that clicking quickly the button results in wrong states.
I could reproduce this in the current versions of Chrome, Firefox and IE.
EDIT: Fixed HTML5 Validator error
The text was updated successfully, but these errors were encountered: