Sidenav closing issue #2173
Replies: 2 comments 2 replies
-
I've a solution but I'm not sure that the better one : I add the following in the fonction triggered by the button which is supposed to close the sidenav. It's like the sidenav instance is not initiated on mount (because const instance = Sidenav.getOrCreateInstance(
document.getElementById('choiceSideMenuWrapper')
)
instance.toggle() |
Beta Was this translation helpful? Give feedback.
-
Hi! From what I can see you have included all the necessary data attributes so it should work out of the box. What kind of initialization did you use for your sidenav? Did you initialize via With |
Beta Was this translation helpful? Give feedback.
-
Hello !
I cannot figure out why the button with the cross cannot close my sidenav component here. I've checked all the
data-te-...
and all seems OK but the button doesn't trigger the sidenav closing though.Is there a way to diagnose this issue deeper ? Because I have no error message in console...
Thanks in advance for your help.
Beta Was this translation helpful? Give feedback.
All reactions