Hi,
I’ve found an issue with JP CE Floating Buttons when using more than one element on the same page.
Setup:
- Two JP CE Floating Buttons elements are placed on the page.
- Both use Enable Main Button.
- Main Button - Click Mode is set to Click.
Expected behavior:
Each floating button group should open and close its own child buttons independently.
Actual behavior:
If only one element is on the page, it works correctly: clicking the main button shows the child button.
However, when two elements are placed on the same page, the second one works correctly, but the first one does not open its own child button properly.
It looks like the click-mode JavaScript may not be fully scoped per element instance. In the template, the variables button and elementdiv appear to be assigned without let or const, so multiple instances may overwrite each other:
button = document.getElementById("jp_...");
elementdiv = document.querySelector("#jp_... .element-container");
Could you please check this?
Thanks
This message contains confidential information