It's only possible to update accordion selection through the onSelectionChange handler. I have attached a link to a codesandbox demonstrating a simple example where accordions are used as steps with Back/Next buttons. When trying to change selectedKeys - nothing happens.
NextUI Version
2.0.19
Describe the bug
It's only possible to update accordion selection through the
onSelectionChange
handler. I have attached a link to a codesandbox demonstrating a simple example where accordions are used as steps with Back/Next buttons. When trying to changeselectedKeys
- nothing happens.Your Example Website or App
https://codesandbox.io/p/sandbox/reverent-maria-vr8229
Steps to Reproduce the Bug or Issue
Expected behavior
I'd expect that it's possible to update
selectedKeys
from any handler by just returning new Set of values (new Set()
)Screenshots or Videos
No response
Operating System Version
macOS 12.3.1
Browser
Chrome