Offcanvas data elements inside button can target multiple elements? #39589
Unanswered
Ivan-Crudo
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone, I start by saying I'm not a super pro with bootstrap and I use it very rarely.
I am using the OffCanvas component.
I had the need to open another canvas inside another and I thought about doing it programmatically, initially had troubles with the backdrop background, made it work somehow but looked too buggy and not the cleanest solution out there, so I re-read the docs and jumped online to see if everyone had my same problem.
I wasn't so lucky so I tried again, here as you can see is the solution I came up with:
<strong data-bs-dismiss="#contactstructure" data-bs-target="#inforequest" data-bs-toggle="offcanvas" >Click here to open </strong>
This somehow worked, I passed the id of the closing modal to data-bs-dismiss and the traditional target in toggle, I didn't find any of this inside the doc and I am now wondering if this is a bug or a feature because it saved me
Beta Was this translation helpful? Give feedback.
All reactions