[Feature Request] Controlled disclosure #2692
maximelebastard
started this conversation in
Ideas
Replies: 2 comments
-
Yes, please! |
Beta Was this translation helpful? Give feedback.
0 replies
-
I too find myself wanting to be able to preserve the open/close state of a disclosure on navigating away and back again. |
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
-
Use case
I'm using Disclosure for a navigation. For user comfort I'm storing which menus are opened and which are not.
Usage example
I'd like to do that
Current workaround
I could listen to all my Disclosure.Button to store changes and use defaultOpen to pass the initial state. But it seems quite complicated and bug prone for just a disclosure state. It kind of reduces the value of using headless ui
Beta Was this translation helpful? Give feedback.
All reactions