Interaction working on preview but not on site

I have created a custom coded hamburger. Which works fine. I have added an interaction to this hamburger to make it open a full page nav menu. This interaction works fine in preview mode but when published it doesn’t work.

The interaction first step (first click) works fine until I add a second click and then it stops working altogether. But I need a second click to be able to close the navigation.

Here is my site Read-Only: Webflow - Mikki Leigh Portfolio