From 51a0c62ed2e8b836799e25fa03b763281ec06ed0 Mon Sep 17 00:00:00 2001 From: sheryweb Date: Fri, 7 Dec 2018 17:47:07 +0500 Subject: [PATCH] Type Error $toclone.clone is not a function --- src/assets/yii2-dynamic-form.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/assets/yii2-dynamic-form.js b/src/assets/yii2-dynamic-form.js index 1fbdec1..fbe3045 100644 --- a/src/assets/yii2-dynamic-form.js +++ b/src/assets/yii2-dynamic-form.js @@ -115,7 +115,7 @@ var count = _count($elem, widgetOptions); if (count < widgetOptions.limit) { - $toclone = widgetOptions.template; + $toclone = $(widgetOptions.template); $newclone = $toclone.clone(false, false); if (widgetOptions.insertPosition === 'top') {