Skip to content

Commit bebb469

Browse files
committed
Bug #224: Fixes the cloning of elements.
1 parent 171b645 commit bebb469

File tree

3 files changed

+16
-29
lines changed

3 files changed

+16
-29
lines changed

CHANGELOG.md

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,35 @@
1-
yii2-dynamicform change Log
2-
===========================
1+
# yii2-dynamicform change Log
2+
3+
4+
## [v2.0.3 (2020-05-18)](https://github.com/wbraganca/yii2-dynamicform/compare/v2.0.3...v2.0.2)
35

4-
dev-master
5-
----------
66
- Enh: Updated composer.json ('symfony/dom-crawler': '~2.8|~3.0' and 'symfony/css-selector': '~2.8|~3.0').
77
- Bug #40: Fixed dropDownList reset after insert item.
88
- Enh #25: Added enhancements to better support for nested widgets.
99
- Enh #24: Added support for "jquery.inputmask". It only works with Yii 2.0.4 or higher.
1010
- Enh: Remove "error/success" class css template to be cloned.
11-
- Bug: Fixes for: checkbox(), checkboxList(), radio() and radioList()
11+
- Bug: Fixes for: checkbox(), checkboxList(), radio() and radioList().
12+
- Bug #224: Fixes the cloning of elements.
13+
1214

15+
## [v2.0.2 (2015-02-25)](https://github.com/wbraganca/yii2-dynamicform/compare/v2.0.2...v2.0.1)
1316

14-
version 2.0.2
15-
-------------
16-
**Date:** 25-Fev-2015
1717
- Bug #22: Correct reset attributes (id, name) when we have more than two nested widgets
1818

1919

20-
version 2.0.1
21-
-------------
22-
**Date:** 23-Fev-2015
20+
## [v2.0.1 (2015-02-23)](https://github.com/wbraganca/yii2-dynamicform/compare/v2.0.1...v2.0.0)
21+
2322
- Bug: Fixed error for the use of multiple nested widgets with zero initial elements
2423

2524

26-
version 2.0.0
27-
-------------
28-
**Date:** 22-Fev-2015
25+
## v2.0.0 (2015-02-22)
26+
2927
- Enh #20: Added trigger 'beforeDelete'
3028
- Bug #19: Fixes checkboxes on new items
3129
- Enh #15: Added support for multiple nested widgets
3230

3331

34-
version 1.1.0
35-
-------------
36-
**Date:** 16-Dez-2014
32+
## v1.1.0 (2014-12-16)
3733

3834
- Bug #7: Added support for "kartik-v/yii2-widget-depdrop" for working with type DepDrop::TYPE_SELECT2
3935
- Bug #8: Fixes to support the latest version of kartik-v widgets
@@ -46,8 +42,6 @@ version 1.1.0
4642
- Enh: Added support for "kartik-v/yii2-widget-colorinput"
4743

4844

49-
version 1.0.0
50-
-------------
51-
**Date:** 05-Nov-2014
45+
## v1.0.0 (2014-11-05)
5246

5347
Initial release

src/assets/yii2-dynamic-form.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
var count = _count($elem, widgetOptions);
116116

117117
if (count < widgetOptions.limit) {
118-
$toclone = widgetOptions.template;
118+
$toclone = $(widgetOptions.template);
119119
$newclone = $toclone.clone(false, false);
120120

121121
if (widgetOptions.insertPosition === 'top') {

0 commit comments

Comments
 (0)