I am trying to add collection of input texts with add/delete buttons on admin block.
The problem is when I hit add button I get new 3 or 4 or even 5 new input fields instead of one!
The js function setup_collection_buttons
called more than once hence attached more click events on HTML element .sonata-collection-add
Before clicking:
After:
Any Idea why ?