digdir / designsystemet

Designsystemet
https://designsystemet.no
MIT License
78 stars 36 forks source link

Sync-issue when using the open-prop in Dropdown-component #2533

Open hansenalexander opened 2 weeks ago

hansenalexander commented 2 weeks ago

Description of the bug

There's a sync-issue when using the open-prop in the dropdown-component. When trying to open the dropdown it won't render it as open the first time it's clicked. When attempting to click again the dropdown renders as open while it should be closed.

Steps To Reproduce

Go to: https://next.storybook.designsystemet.no/?path=/docs/komponenter-dropdown--docs#kontrollert Copy - paste example. Try opening the dropdown.

Additional Information

No response

mimarz commented 4 days ago

Thanks for reporting this!

We'll have a closer look once we've settled some other stuff we are currently working on.

Were you able to reproduce this error in a codesandbox?