Elements not collapsing in Live site, Working perfectly in Sandbox preview

I’m having an issue with some particular pages on the live site. A collapsed element is not getting collapsed in live site, but works perfectly in Sandbox preview.
Also, when I do a console.log to check if the elements are collapsed it shows a “true” in both the preview mode an the live site.
Need help to fix this ASAP as I can’t figure out what is going wrong.

Hi @gsmash95 ,

Please share a link to your site/editor so one of us, the Wix Code team, can inspect your site and provide you with an answer.
Rest assure that only authorized personnel can inspect your site and use your editor link.

Doron.

Hi Doron,
Thanksfor your reply.
Here’s the editor link- https://editor.wix.com/html/editor/web/renderer/edit/92e376d4-928e-4e7a-ba4c-688919a05980?metaSiteId=3b932ec2-da72-45b7-adae-b2c247d5fe72&editorSessionId=5691e182-8771-4631-b00c-34d55d1d4717&referralInfo=dashboard

The same code is there on a few more pages.
Thanks,
Sameer

Hi again,

I’ve looked at your site and have to say that it’s nearly impossible to find what the issue is.
Your code is very complicated and I can only suggest for now to break it into smaller and shorter functions.

Please try to recreate the issue you’re describing in a test page that includes only the relevant code.

Doron.

Hi Doron,
Thanks. But i just don’t understand how the preview in the editor is totally perfect, but the live site shows up differently. Recreating it seems tough, cause there’s a lot of data in and out.
Could you suggest some ideas that I could look into to try and debug the issue? Like what exactly could be going differently in the sandbox mode and the live site?
I could speak and explain the code to you personally if required.
Thanks,
Sameer