Accordion to be able to fully close again #3412
Replies: 1 comment
-
Thanks for sharing. There's CSS focus method (closes when losing focus) And checkbox method (each item can be opened/closed independently) Or with Radio inputs (only one can be open) For checkbox method and radio input method, it works the way HTML checkbox and radio input works. So clicking a checked radio input wont close it. https://play.tailwindcss.com/ib5qw03NOq But of course you can use JS to control the value or use a reset button to uncheck everything in form… |
Beta Was this translation helpful? Give feedback.
-
It makes no sense to me but my client insists once the accordion has been interacted with they want it to close again.
I couldn't seem to find a way to do it natively so hacked it like so.
Maybe this could be a feature, even if for v5. Thanks
Beta Was this translation helpful? Give feedback.
All reactions