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!


Here is my public share link:

1 Like

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