DubFriend / jquery.repeater

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

Initializing repeater multiple times #105

Open alainjlavoie opened 5 years ago

alainjlavoie commented 5 years ago

Hi, I have a releater with a select , textbox and button. When switching in the UI languages I update the repeater template with the proper strings then call $('#MyRepeater').Repeater({ initEmpty: true });

When calling .Repeater() a second time, the internal representation of the existing template from the first language is not removed and the second call adds the template in the new language. When clicking on the Add button, I get two rows, one in the first language and 1 in the second language. Is there a way to destroy the repeater's internal state so we could initialize it multiple times with new a new template?

Thanks for the great work, very useful plugin :) Cheers/Alain

azeembabar commented 4 years ago

same question!

kurybr commented 4 years ago

Hey man !! I Fixed this bug in a fork on my repository => https://github.com/kurybr/jquery.repeater

ducwp commented 3 years ago

Chào bạn !! Tôi đã sửa lỗi này trong một đợt fork trên kho lưu trữ của mình => https://github.com/kurybr/jquery.repeater

I Have tested and not work.