ninsuo / symfony-collection

[NOT MAINTAINED] A jQuery plugin that manages adding, deleting and moving elements from a Symfony form collection
https://symfony-collection.fuz.org/
MIT License
444 stars 88 forks source link

elements_parent_selector ignore custom_add_location #166

Open Aterkop opened 4 years ago

Aterkop commented 4 years ago

Hi there, In my project I want to add collection element in tab content with add buton in tab header. For that I use :

The 2 fisrts elements works as espected but when I add elements_parent_selector, a standard add button is added at the end of my tab-content (my elements_parent_selector). The elements_parent_selector ignores custom_add_location. I fix it by adding if (settings.add && !settings.custom_add_location) { to jquery.collection.js line 345. Please see if you can fix it for a future release. Thank you !