Replies: 1 comment 2 replies
-
Hey there. As a broad suggestion, you shouldn't have to add anything else to the modals to make them work, but you have to make sure naming is consistent if you change something. Considering the amount of markup in these modals, it's honestly best not to, unless there's a legit reason for it. You may want to start over with a new modal. I have a modal that is a bit different than yours and the right attribute is data-bs-dismiss= "modal". I have that on all buttons so the modal always closes even if that button performs another action. By just looking at your code here, you need to also add data-dismiss="modal" to the second 'Yes' button, just like on the 'Close.' Hope that's helpful. |
Beta Was this translation helpful? Give feedback.
-
Hello there, I used a modal with the new version of Bootsrap v5.1.0 but when I wanna close the modal It does not close, despite i changed the button target Id & I also changed the modal Id, Does anyone have any Idea In order to fix this issue?
This is the code i used:
` <button type="button" class="btn btn-primary btn-lg" data-bs-toggle="modal" data-bs-target="#enroll">Start The Enrollment
`
Beta Was this translation helpful? Give feedback.
All reactions