Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

srle90's avatar

help with handling toggleAccordion with @click

I would like to achieve that when I have already opened an element and I want to open the next one, the index of the arrow of that element rotates correctly

The problem arises when the clicked element is older than the already opened element, while in the opposite direction there is no such problem because the index remains unchanged as can be seen from the attachment

https://filebin.net/n5t477wrsmqdlvvz

https://gifyu.com/image/SjBb9 https://gifyu.com/image/SjBb3

0 likes
0 replies

Please or to participate in this conversation.