wbraganca / yii2-dynamicform

It is widget to yii2 framework to clone form elements in a nested manner, maintaining accessibility.
Other
436 stars 439 forks source link

Cannot read property 'widgetItem' of undefined #68

Open shreenu opened 9 years ago

shreenu commented 9 years ago

Cannot read property 'widgetItem' of undefined

showing this error i need to write some javascript action after elements inserted.

$(".dynamicform_wrapper").on("beforeInsert", function(e, item) {
    console.log("beforeInsert");
});

the above code is not working.

ald3rson commented 9 years ago

do you really need js for that sir? you can actually remove all the js (beforeinsert, afterinsert, beforedelete afterdelete). they are just error handlers

kaiflow commented 9 years ago

Can we check how you initialize your DynamicFormWidget?

Make sure the name of your widgetContainer is dynamicform_wrapper

bit-crafter commented 8 years ago

👍 +1