-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Modal fade animation gets interrupted by .btn transition #5230
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
Comments
@jquense should we override/replace |
A hacky solution, but I have found that if you add a small timeout, (smallest being 200 milliseconds) you can see the closing animation. Note I am using Redux in this example, but you can just as easily use useState and the function that sets the boolean.
|
I guess we could use something like this @taion ? In my testing, I get about 5
|
It seems reasonable in this case; I think there are other cases where the transition may not be on the element itself. Could we make an upstream fix in dom-helpers? cc @jquense – would this be correct? |
Yeah I think a fix in dom-helpers is the best place for it. Could add an option like |
Not sure if this is still ongoing but this problem also occurs with Toasts as well. |
There is no problem when you click on the close button (X) or backdrop. But this is happening when you click on a button in the footer. Just click fast enough to see the difference on the fade animation.
https://react-bootstrap.github.io/components/modal/#modals-live
I think it's caused by transition event in bootstrap's .btn class, as @bbtfr mentioned here.
The text was updated successfully, but these errors were encountered: