I experience this same issue. When I want to show a data detail in a modal from a row click in a table, it also adds the whole content thing and consequently the data detail doesn’t work properly. When I remove that part from the code editor it works fine.
That is exactly when it happens, using Node with content pages, and I am on version 3.9.7. When I create a test page and there is only one repeat on the page, I believe it works fine. However on this page I have 3 or 4 repeats.
Thanks for taking a look at this and correcting the issue.