Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ELEMENT_ID of repeater returns DATA-ID #3544

Open
RCRGodinho opened this issue Jun 30, 2024 · 0 comments
Open

ELEMENT_ID of repeater returns DATA-ID #3544

RCRGodinho opened this issue Jun 30, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@RCRGodinho
Copy link

Describe the bug
When using a repeater with custom JS code inside an element, using the "%%ELEMENT_ID%%" tag returns the 'data-id' of the element. The repeater normally increments a '-x' numeration to the elementid when using a repeater, shouldn't the "%%ELEMENT_ID%%" tag return the elementid generated in the repeater instead of the 'data-id' ?

A link to a Sandbox site where the bug has been reproduced:
https://oxygen-qt3fp7h9jnjzl.oxygen-demo.qsandbox.org/sample-page/

Steps to reproduce the behavior:

  1. Add a repeater element;
  2. Add custom JS to an element inside the repeater;
  3. Use the "%%ELEMENT_ID%%" tag;
  4. Run the page in the front-end and inspect;
  5. Check console (if logged) or check Sources where you will see the data-id tag being passed instead of the actual ID '-1' or '-2';
@RCRGodinho RCRGodinho added the bug Something isn't working label Jun 30, 2024
@RCRGodinho RCRGodinho changed the title ELEMENT_ID of repeater returns DATA_ID ELEMENT_ID of repeater returns DATA-ID Jun 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant