A 'modal-open' class is removed from body when switching between multiple modals
Created by: jirikolda
Prerequisites
-
I have searched for duplicate or closed issues -
I have validated any HTML to avoid common problems -
I have read the contributing guidelines
Describe the issue
When switching between multiple modals, the 'modal-open' class gets removed from the body element. Is that intentional? It's not causing any issues in the overall functionality of modals, but it just like a small bug, that even though the second modal is open, the class is missing.
Reduced test cases
The functionality can be easily noticed in the Docs: https://getbootstrap.com/docs/5.2/components/modal/#toggle-between-modals
What operating system(s) are you seeing the problem on?
Windows
What browser(s) are you seeing the problem on?
Chrome, Firefox, Opera
What version of Bootstrap are you using?
v5.2