Dropdown Menu Effect Applied to Parent Even with 'Only Children with This Class' Option Selected

Hello everyone,
I’m experiencing an issue with the dropdown menu. I have a parent item (Item 4) and several child items nested beneath it (Item 4-1, 4-2, 4-3). I’ve applied an effect to close the child section using the ‘Only children with this class’ option, but the parent item is also affected when I do this.

In the screenshot, you can observe that both the parent item (Item 4) and its child items are displaying the ‘-’ (minus) sign icon. Ideally, only the child items should display this effect, leaving the parent item unaffected. Any suggestions on how to fix this?

Please review the issue on my demo page here: https://menu-3ce399-cb841372fa46e7b5a2c8cebe3c.webflow.io/


only children still effect on parents
interactions

Thanks in advance!

Hi Mandy,

Do you have a read-only link that you can share?

1 Like

https://preview.webflow.com/preview/menu-3ce399-cb841372fa46e7b5a2c8cebe3c?utm_medium=preview_link&utm_source=dashboard&utm_content=menu-3ce399-cb841372fa46e7b5a2c8cebe3c&preview=9fd2eb16494d947b4058814f91dd1a09&workflow=preview

Hi Mandy, after a bit of research and testing, I believe there is actually nothing wrong with your setup - instead, it is an issue with how Webflow’s ‘Dropdown Opens’ and ‘Dropdown Closes’ animations work. When you close the inner dropdown, it fires the dropdown open/close event for the parent dropdown.

Depending on how comfortable you are with custom interactions/animations, you could potentially replace the inner dropdown with some div blocks and build a dropdown interaction yourself. The custom ‘list’ would have an initial height of 0 and then change to auto when the custom ‘toggle’ is pressed. It would then go back to 0 when it’s pressed again. You would also need to make sure that as part of the main outer dropdown’s close animation, the inner list goes to a height of 0, so that it doesn’t remain open when you close the main dropdown.

Let me know if that makes sense, and if you need help with the inteeraction.