A community member is trying to create a sticky button that hides when another CTA is present on the screen. The JavaScript code works fine when tested on the Webstudio canvas, but doesn't work when published on the browser. The community members suggest checking the "client only" option and using <script></code> to resolve the issue. Additionally, they recommend setting "client-only true" as a potential solution.</p>
I'm trying to create a sticky button that hides when another CTA is present on the screen.
I'm using some javascript for it and it works fine when i run it on the Webstudio canvas. But when I publish it, it doesn't work on the browser. Any idea why this happens? Is there a better approach for this?