Dropdown accordion expands to full screen before closing

I followed the tutorial here (Create a Custom Accordion – Webflow tutorial - YouTube) to alter the standard dropdown element into an expandable/collapsible accordion.

When I click to close the accordion, the main element expands to full screen quickly before closing. I’ve followed through the tutorial a number of times, making sure to complete each step correctly, and I still have the problem.

Any help would be appreciated!

1


Here is my public share link:
https://preview.webflow.com/preview/accordion-e42def?utm_medium=preview_link&utm_source=designer&utm_content=accordion-e42def&preview=e699b846c0df7a31e6ca525243cc795d&workflow=preview

1 Like

Did you find a solution? Trying to figure out the same problem today after following the same tutorial.