solid-blocks icon indicating copy to clipboard operation
solid-blocks copied to clipboard

UX on <AccordionGroup> 's "allowMultiple" property

Open dennismok2018 opened this issue 1 year ago • 1 comments

I was just playing around on the demo of <AccordionGroup>

  1. Enable 'allowMultiple'
  2. Open >1 Accordions
  3. Disable 'allowMultiple'
  4. Now we get 3 behaviours: -a : cannot close already opened Accordions -b: can open new accordions but newly opened Accordions cannot be closed as the others -c: if a newly opened one is the last unopened one on the list, every opened Accordion are then closed and only the last opened one stay open (I think only this intuitively should be the default behaviour after we get rid of 'allowMultiple' and back to default)

P.S. Not sure how one would get there in real-life application except tinkering with the demo like me so might not actually be a bug

dennismok2018 avatar Apr 29 '23 20:04 dennismok2018

Changing the properties while the accordions are rendered is currently considered not a use case. However, I might reconsider this behavior if I get reports of this breaking real-life apps.

atk avatar Apr 29 '23 21:04 atk