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

Modals: remove backdrop class manually when closing modals #2794

Merged
merged 1 commit into from
Feb 23, 2024

Conversation

MonkeyDo
Copy link
Contributor

Due to removing the modal from the DOM tree to conserve resources , I broke the bootstrap/jquery mechanism that removes the "modal-open" class that is added to the HTML body element when we open a modal (#2772 made the timeout shorter).
Since the DOM elements are removed, the event callback that removes the class isn't fired, so we need to fire it manually.

Let's move to React-Bootstrap soon and avoid all this bullshit, shall we?

Due to removing the modal from the DOM tree to conserve resources, I broke the bootstrap/jquery mechanism that removes the "modal-open" class that is automatically added to the body element in the page.
Since the DOM elements are removed, the event callback that removes the class isn't fired, so we need to fire it manually.
Let's move to React-Bootstrap soon and avoid all this bullshit, shall we?
@MonkeyDo MonkeyDo merged commit b2d8dbf into master Feb 23, 2024
3 checks passed
@MonkeyDo MonkeyDo deleted the fix-modal-backdrop branch February 23, 2024 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant