Hello, there seems to be a bug (unless it is something I am doing wrong) when fetching the ID of a clicked element, using:
hidden_target = element.getAttribute("id");
hidden_target = element.id;
fetching the class I have no problem, using element.classList.item(1);
However when fetching the ID, sometimes the element ID is fetched and at other times the ID of the element is set to something like "hype-obj-4WWTAGS83FQ45BKGXQEH" - that is, if I reload the page 20 times, about 5 of those times the incorrect id is fetched.
Image below showing how to reproduce problem