You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The new offcanvas component is triggered by a link with the href attribute or a button with the data-bs-target attribute. However, if the link/button contains other HTML tags, e.g. an icon like <span class="navbar-toggler-icon"></span> chances are, that the user ends up clicking on the icon. If he does so, the offcanvas will not be triggered. It only works if the border of the link/button is clicked, i.e. outside of the included HTML tag. I suppose that the responsible JS function uses the event.target instead of event.currentTarget but I'm not sure about this.
Have a look at the attached reduced test case to see this bug in action.
The text was updated successfully, but these errors were encountered:
The new
offcanvas
component is triggered by a link with thehref
attribute or a button with thedata-bs-target
attribute. However, if the link/button contains other HTML tags, e.g. an icon like<span class="navbar-toggler-icon"></span>
chances are, that the user ends up clicking on the icon. If he does so, the offcanvas will not be triggered. It only works if the border of the link/button is clicked, i.e. outside of the included HTML tag. I suppose that the responsible JS function uses theevent.target
instead ofevent.currentTarget
but I'm not sure about this.Have a look at the attached reduced test case to see this bug in action.
The text was updated successfully, but these errors were encountered: