Ability to toggle Disclosure based on current menu item #598
-
I'm trying to use a Disclosure button/panel in combination with a slideout Dialog for a mobile navigation menu, as per examples on Tailwind UI. I'm looking to be able to toggle the sub-menu as open if the parent menu item is I have almost got this working using a conditional to set the open state, and a static Disclosure.Panel, but I can't then pass a new 'open' state when I click the button to close the menu. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Never mind. Realised I can just use the defaultOpen prop. |
Beta Was this translation helpful? Give feedback.
Never mind. Realised I can just use the defaultOpen prop.