Skip to content

Commit 9f1dc41

Browse files
author
Eugene Tupikov
committed
fix
1 parent ffbc49b commit 9f1dc41

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

assets/src/js/jquery.multipleInput.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,15 @@
4545
var intervalID = setInterval(function(){
4646
if (typeof form.data('yiiActiveForm') === 'object') {
4747
var attribute = form.yiiActiveForm('find', id);
48-
if (attribute !== false) {
48+
if (typeof attribute === 'object') {
4949
$.each(attribute, function (key, value) {
5050
if (['id', 'input', 'container'].indexOf(key) == -1) {
5151
wrapper.data('multipleInput').attributeDefaults[key] = value;
5252
}
5353
});
54+
form.yiiActiveForm('remove', id);
5455
}
55-
form.yiiActiveForm('remove', id);
56+
5657
wrapper.find('.multiple-input-list').find('input, select, textarea').each(function () {
5758
methods.addAttribute.apply(this);
5859
});

0 commit comments

Comments
 (0)