How to close all accordion's items on losing focus? #334
-
Is there a way to close accordion items programmatically? |
Beta Was this translation helpful? Give feedback.
Answered by
ngdangtu-vn
Jan 28, 2024
Replies: 1 comment
-
Found it! Eureka! It is the When we combine it with SolidJs directives |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ngdangtu-vn
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Found it! Eureka!
It is the
open
property fromCollapsible
component. (My case was aimming toAccordion.Item
, it shares props withCollapsible.Root
)When we combine it with SolidJs directives
use:
namespace, we can achieve the logic close on losing focus.