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

Bootstrap 5 modal .fade does not finish hide animation if element within it is focused #32993

Closed
suneettipirneni opened this issue Feb 5, 2021 · 2 comments

Comments

@suneettipirneni
Copy link

suneettipirneni commented Feb 5, 2021

Whenever closing a .fade modal the animation should complete fully, however when an element in the modal is focused this is not the case. I can successfully reproduce this issue by using the any one of the bootstrap 5 modal examples that have .fade. The difference is hard to see at first glance so I attached slowed down videos of the two animations to identify the discrepancies.

Closing modal with no element focused:

nonFocusAnimation.mp4

As you can see the animation finishes and executes properly.

Closing modal with element within it focused:

focusAnimation.mp4

Here the animation starts, but then gets interrupted and suspends.

  • Operating system and version
    macOS Big Sur 11.2
  • Browser and version
    Safari 14.0.3

Bootstrap 5.0.0-beta1

https://getbootstrap.com/docs/5.0/components/modal/#varying-modal-content

@suneettipirneni suneettipirneni changed the title Modal .fade does not finish hide animation if element within it is focused. Bootstrap 5 modal .fade does not finish hide animation if element within it is focused Feb 5, 2021
@mdo
Copy link
Member

mdo commented Jun 9, 2021

Possibly a duplicate of #34055?

@alpadev
Copy link
Contributor

alpadev commented Jun 11, 2021

@mdo I think this issue is fixed by #33845.

@alpadev alpadev closed this as completed Jun 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants