DubFriend / jquery.repeater

Create a repeatable group of input elements
MIT License
388 stars 191 forks source link

Fixed: When using setList with nested lists with more subitems in list and creating new item, new subitems were created more times #178

Open roncakjakub opened 11 months ago

roncakjakub commented 11 months ago

Hi, I had a problem with nested list. When i populated id with data from database, it looked like this.

image

When I clicked "Pridaj pozíciu", it created template from first row, so at the end it looked like this.

image

I solved it with removing other items except first one in each list like this

image

Hope it will help someone struggling the same problem :)