-
-
Notifications
You must be signed in to change notification settings - Fork 79k
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
offcanvas Toggle doesn't trigger if it has image inside (Event doesn't bubble?) #33457
Comments
You have to share a live demo, videos don't help us. |
I had the same problem when using icons in the toggle button. As workaround you can add |
Only text triggers working properly, font icons, svg, img are not working as triggers. here is an example: https://mis.gumatech.com/ if you click on the icon it won't open but if you click on the padding of the button it will work. |
I think we have problem with eventHandler here :/ |
Hi!
I can also confirm this workaround is semi-functional. Using an SVG you must also put it on each |
I came across this by combining the Navbar Example which is putting a <button class="navbar-toggler" type="button" data-bs-toggle="offcanvas" data-bs-target="#offcanvasExample" aria-controls="offcanvasExample">
<span class="navbar-toggler-icon" data-bs-target="#offcanvasExample"></span>
</button> |
The workaround works for SVG images, too. But you have to add the <a class="nav-link" href="#sidebar" data-bs-toggle="offcanvas" aria-controls="sidebar" aria-expanded="false" aria-label="Toggle sidebar">
<svg class="icon" data-bs-target="#sidebar">
<use href="#icon-menu" data-bs-target="#sidebar"></use>
</svg>
</a> |
Hi, Looks like this is a z-index issue for the Icon, SVG or any other tag you used inside the anchor tag. Thank you |
Toggle being picky on whats it on https://gyazo.com/99dca53751898f9714f8347ecafc0ffa
you cannot use images as a trigger it needs text to work......
The text was updated successfully, but these errors were encountered: