You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Open a bunch of the collapsibles via the buttons. Then drag and drop to rearrange them.
Describe the bug
Using splice to rearrange an array of collapsibles causes the open animation to fire or flicker.
This occurs on drag start and when a drag ends (but only on the collapsible that is higher up). If all collapsibles start open, it does not occur, user must close/open first.
Expected behavior
If the dragged/spliced collapsible was previously open, it should stay open and not flicker.
Environment
Link to minimal reproduction
https://codesandbox.io/p/sandbox/collapsible-flicker-x59g7c
Steps to reproduce
Open a bunch of the collapsibles via the buttons. Then drag and drop to rearrange them.
Describe the bug
Using splice to rearrange an array of collapsibles causes the open animation to fire or flicker.
This occurs on drag start and when a drag ends (but only on the collapsible that is higher up). If all collapsibles start open, it does not occur, user must close/open first.
Expected behavior
If the dragged/spliced collapsible was previously open, it should stay open and not flicker.
Context & Screenshots (if applicable)
Seems similar to issue radix-ui/primitives#1074 (comment)
The text was updated successfully, but these errors were encountered: