Animation condition for dropdown?

Hello, I’m new to Webflow and I need help with this. I’m creating an animation to open a side menu that contains dropdown elements, and I want, when I click the “X” button to close the menu, all dropdowns to close before the menu closes. I even managed to do that, but it ended up affecting the animation of the dropdown itself, making it need two clicks to open it again.

Here is my public share link: