PGIA not working on .cloneNode?

Hi,

I have a list like element with one list item which has an interaction. Clicking on it will show more content inside that item which is hidden at the beginning. I need to dynamically duplicate this list item several times an I do this with .cloneNode (and .appendChild) in JS.

The Interaction of the first item works, but no interaction of the cloned items. The data-pg-ia attribute is set on all the clones just like the original list item.

When I duplicate the element in Pinegrow, everything works fine. The data-pg-ia attribute ist the same on the duplicated list item, just like when I duplicate it with JS.

My guess is, that PGIA can’t detect dynamic added elements? Does anyone has an explanation?