Skip to content

accordion group inconsistent callback value #194

Open
@david-nathanael

Description

@david-nathanael

Trying to work with an accordion group in controlled mode but having issues getting the right value on the onExpandedChange callback.

https://stackblitz.com/edit/nextjs-hu1mpy?file=app%2Fpage.tsx

If i click on Accordion 1 then Accordion 2 then Accordion 1 then Accordion 2
i should expect to always have expanded = true in the onExpandedChange callback right?

right now it would show true, true, false, false

is this the expected behaviour ?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions