Responsive offcanvas and need of data-bs-target="#offcanvasResponsive"
for close button
#36626
Unanswered
julien-deramond
asked this question in
Q&A
Replies: 1 comment
-
Thank you so much! I just spent a couple of hours not understanding why my close button was ineffective, and your message made me see what was missing. I wish the documentation insisted on that particular aspect, instead of just showing it in the related example. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm creating this discussion just in order to not to forget this question.
Why is
data-bs-target="#offcanvasResponsive"
needed only in the Responsive Offcanvas example for the close button?Does it hide a bug or is it normal?
bootstrap/site/content/docs/5.2/components/offcanvas.md
Line 170 in eea1b1e
Without it, an error can be seen in the console:
Beta Was this translation helpful? Give feedback.
All reactions