You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The latest commit 75c4271 not working with widget-fileinput by kartik. You can see that in your example here dynamicform-demo2
When you pick an image and then try to duplicate you get this error:
yii2-dynamic-form.min.js:8 Uncaught TypeError: Cannot read property 'widgetItem' of undefined
at _updateAttrID (yii2-dynamic-form.min.js:8)
at HTMLDivElement. (yii2-dynamic-form.min.js:8)
at Function.each (jquery.js:374)
at jQuery.fn.init.each (jquery.js:139)
at HTMLTableRowElement. (yii2-dynamic-form.min.js:8)
at Function.each (jquery.js:374)
at jQuery.fn.init.each (jquery.js:139)
at _updateAttributes (yii2-dynamic-form.min.js:8)
at _addItem (yii2-dynamic-form.min.js:8)
at jQuery.fn.init.addItem (yii2-dynamic-form.min.js:8)
When I replace:
var regexID = /^(.+?)([-\d-]{1,})(.+)$/i;
with the old one
var regexID = /^(.+?)(-\d{1,}-)(.+)$/i;
everything works just fine.
The text was updated successfully, but these errors were encountered:
The latest commit 75c4271 not working with widget-fileinput by kartik. You can see that in your example here dynamicform-demo2
When you pick an image and then try to duplicate you get this error:
yii2-dynamic-form.min.js:8 Uncaught TypeError: Cannot read property 'widgetItem' of undefined
at _updateAttrID (yii2-dynamic-form.min.js:8)
at HTMLDivElement. (yii2-dynamic-form.min.js:8)
at Function.each (jquery.js:374)
at jQuery.fn.init.each (jquery.js:139)
at HTMLTableRowElement. (yii2-dynamic-form.min.js:8)
at Function.each (jquery.js:374)
at jQuery.fn.init.each (jquery.js:139)
at _updateAttributes (yii2-dynamic-form.min.js:8)
at _addItem (yii2-dynamic-form.min.js:8)
at jQuery.fn.init.addItem (yii2-dynamic-form.min.js:8)
When I replace:
var regexID = /^(.+?)([-\d-]{1,})(.+)$/i;
with the old one
var regexID = /^(.+?)(-\d{1,}-)(.+)$/i;
everything works just fine.
The text was updated successfully, but these errors were encountered: