trezor / trezor-suite

Trezor Suite Monorepo
https://trezor.io/trezor-suite
Other
713 stars 247 forks source link

CollapsibleBox gets stuck on multi-click #14900

Open krystxf opened 1 week ago

krystxf commented 1 week ago

Describe the bug CollapsibleBox get stuck when I close it with double click. This issue is in storybook, web and electron app.

Info:

How to reproduce Steps to reproduce the behavior:

  1. run packages/components storybook
  2. open http://localhost:9003/?path=/story/collapsiblebox--collapsible-box
  3. open collapsible box
  4. double click the arrow (same issue is with triple click, etc.)
  5. single click the arrow (arrow animates but content stays collapsed)

Expected behavior Content should expand

Screenshots

https://github.com/user-attachments/assets/a1ba52eb-9762-41b8-83d6-72ca3fffa415

Additional context

krystxf commented 2 days ago

Solution

It's an issue in framer-motion (here is a related discussion). This can be solved by bumping the framer-motion version to ^11.11.0