Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<Collapsible> flashes when moved as list items #2138

Open
1 of 3 tasks
du33169 opened this issue Dec 11, 2024 · 1 comment
Open
1 of 3 tasks

<Collapsible> flashes when moved as list items #2138

du33169 opened this issue Dec 11, 2024 · 1 comment

Comments

@du33169
Copy link

du33169 commented Dec 11, 2024

Description

I have a list of items, each using a Collapsible to toggle show/hide with animation.
The collapse state of all items are controlled by a single boolean flag.
If I change the order of the items, their collapsibles will flash (a quick toggle) even if the flag is not changed.

It should also be noted that when the page is first loaded, clicking the reverse button will swap them normally;
But if you toggle the collapse state and back again, it will flash at next reverse.

expected actually
noflash flash

Link to Reproduction

https://stackblitz.com/edit/chakra-ui-v3-ib5zi6pl

Steps to reproduce

  1. Go to the Reproduction Project
  2. Click 'Reverse' (the elements will be swapped as normal)
  3. Click 'toggle collapse' twice.
  4. Click on 'reverse' again (items will be swapped but with flash)

Chakra UI Version

3.2.2

Browser

Mozilla Firefox v133.0

Operating System

  • macOS
  • Windows
  • Linux

Additional Information

No response

@segunadebayo segunadebayo transferred this issue from chakra-ui/chakra-ui Dec 24, 2024
@segunadebayo
Copy link
Member

I transferred this issue to Zag.js where it'll be fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants