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

Javascript error in yii2-dynamic-form.js #229

Closed spiro-stathakis closed 6 years ago

spiro-stathakis commented 6 years ago

Hi there, I am currently getting this error. It seems to have been introduced following an update.

Uncaught TypeError: Cannot read property 'settings' of undefined
    at _parseTemplate (yii2-dynamic-form.js:90)
    at HTMLFormElement.<anonymous> (yii2-dynamic-form.js:37)
    at Function.each (jquery.js:362)
    at jQuery.fn.init.each (jquery.js:157)
    at jQuery.fn.init.init (yii2-dynamic-form.js:36)
    at jQuery.fn.init.$.fn.yiiDynamicForm (yii2-dynamic-form.js:19)
    at update:2508
    at dispatch (jquery.js:5206)
    at elemData.handle (jquery.js:5014)
2yii2-dynamic-form.js:119 Uncaught TypeError: $toclone.clone is not a function
    at _addItem (yii2-dynamic-form.js:119)
    at jQuery.fn.init.addItem (yii2-dynamic-form.js:42)
    at jQuery.fn.init.$.fn.yiiDynamicForm (yii2-dynamic-form.js:17)
    at HTMLButtonElement.<anonymous> (update:2486)
    at HTMLFormElement.dispatch (jquery.js:5206)
    at HTMLFormElement.elemData.handle (jquery.js:5014)
spiro-stathakis commented 6 years ago

Duplicate of #224