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
Toggle between modals has issue #34691
Comments
Bug reports must include a live demo of the issue. Per our contributing guidelines, please create a reduced test case via CodePen or JS Bin and report back with your link, Bootstrap version, and specific browser and operating system details. This is a saved reply. |
I had the exact same issue. The example itself is not working in Boostrap. |
Yeah the docs demo is broken. I think something changed with the modal triggers/toggles and we need to update this. @GeoSot might know exactly what changed. |
Yes @mdo you are right. On our docs we have used some tricky markup <button class="btn btn-primary" data-bs-target="#exampleModalToggle" data-bs-toggle="modal" data-bs-dismiss="modal">Back to first</button>
As bs-dismiss wasn't searching for data-target it was closing the second modal, and bs-toggle was toggling the first modal. |
Isnt this a breaking change for anybody that uses modals inside modals? |
@thoasty-dev please make a new issue. |
It's also broken for me too. Any ideas when I fix might be released? Thanks... |
Toggle between modals has an issue it can't close the first modal and the second modal open on it. it was worked fine on Bootstrap Version 5.0.0. But issue faced in the latest version 5.1.0.
The text was updated successfully, but these errors were encountered: