Skip to content

How to close all accordion's items on losing focus? #334

Closed Answered by ngdangtu-vn
ngdangtu-vn asked this question in Q&A
Discussion options

You must be logged in to vote

Found it! Eureka!

It is the open property from Collapsible component. (My case was aimming to Accordion.Item, it shares props with Collapsible.Root)

When we combine it with SolidJs directives use: namespace, we can achieve the logic close on losing focus.

Replies: 1 comment

Comment options

You must be logged in to vote
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
Category
Q&A
Labels
None yet
1 participant