# PGIA not working on .cloneNode?

**URL:** https://forum.pinegrow.com/t/pgia-not-working-on-clonenode/8186
**Category:** Pinegrow Interactions Add-on
**Created:** [June 29, 2023, 8:56am UTC](https://forum.pinegrow.com/t/pgia-not-working-on-clonenode/8186 "2023-06-29T08:56:51Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Riccarcharias](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/riccarcharias/32/4051_2.png) [@Riccarcharias](https://forum.pinegrow.com/u/Riccarcharias)
#### Post date: [June 29, 2023, 8:56am UTC](https://forum.pinegrow.com/t/pgia-not-working-on-clonenode/8186/1 "2023-06-29T08:56:51Z")

</div>

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?
