Replies: 1 comment
-
Hey @felquis, Yeah unfortunately the So, although technically changing However, I do wonder if what you are trying to achieve results in bad UX for users anyway as by changing the conditions from under them based on the situation, you are breaking the user's expectations potentially. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm working on a use case, where the the Accordion.Root
type
change from single to multiple if if there's a search text on an external input.Use cases:
type="single" collapsible
It works fine, here is the relevant code:
Problem 1:
Problem 2:
Warning: Received `true` for a non-boolean attribute `collapsible`
Final Question
Is it possible to change the type from single to multiple on the fly and still get a better typescript typing for the collapsible property? What are the maintainers considerations here?
This discussion is inspired by #1938
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions