taiga-family / taiga-ui

Angular UI Kit and components library for awesome people
https://taiga-ui.dev
Apache License 2.0
3.2k stars 439 forks source link

🐞 - Accordion component in Firefox closes immediatelly instead of showing animation for collapse #8973

Open konverso-aakulov opened 1 week ago

konverso-aakulov commented 1 week ago

Playground Link

No response

Description

I took the Basic example from the official documentation without any modification (https://taiga-ui.dev/components/accordion#base) and added it to the new project with only Taiga UI added (no other UI kits or dependencies).

It works, except the strange animation behavior for the first and last element in latest Firefox. Sometimes, when I click on the last element to expand and the first element is already expanded, then the first element collapses without animation. The last element is animated properly. And vise versa.

If I do the same for first and second items or for second and the third then everything works fine.

The issue does not appear on the documentation page, but appears on the Stackblitz example from the doc page.

In Chrome everything works fine.

Angular version

18.2.3

Taiga UI version

4.6.0

Which browsers have you used?

Which operating systems have you used?

waterplea commented 1 week ago

I wonder if it can be possible to drop our own transition implementation and just use Angular animations for height transition. Back when we created it it wasn't a thing I believe. And the only reason for using custom transition is because CSS cannot transition from/to auto which Angular animations can do.