Answer the question
In order to leave comments, you need to log in
Bootstrap 4 is it possible to remove the modal somehow?
I have a function that renders a modal window, but hiding it is problematic. You need to remove the class from the body, then remove the dark background. In short, very uncomfortable. Maybe bootsrtap has a ready-made function that removes a modal window from the page?
Answer the question
In order to leave comments, you need to log in
so it is, and it is written in the same place as the opening of the same window
You can read all the information here: https://getbootstrap.com/docs/4.5/components/modal/
Even if you just copy the modal window, you will have a close button (don't forget to include the bootstrap scripts):
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question