ulion / jsonform

Build forms from JSON Schema. Easily template-able. Compatible with Twitter Bootstrap out of the box.
http://ulion.github.io/jsonform/playground/
MIT License
49 stars 27 forks source link

Why does the 'addmore' array button prevent propagation? #32

Open adam-clarey opened 8 years ago

adam-clarey commented 8 years ago

On line 1305 of jsonform.js there is the line

evt.stopPropagation();

Which means I'm unable to listen for then someone clicks it. I need this event as I have JS to execute when a new array item is added.

I'm guessing there is a reason for this, I just can't see what or how to get around it. For the time being I've commented out this line but that's not a long-term fix.

Ideally there would be an event/hook that gets called whenever a new item is added for just such a need