Here so far I had no replies, but after contacting in the Discord, I have found out that it is just a visual bug, every function is well, functional, but yes, it is not so good to have “errors” in the code. In Editor X it seems it works well, but in Wix Editor it does not. A moderator told me “Yeah, I can confirm the team is aware and working on fixing the bug”
Hopefully this helps you: (It will say it has errors, just ignore it and run the page anyway)