We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffbc49b commit 9f1dc41Copy full SHA for 9f1dc41
assets/src/js/jquery.multipleInput.js
@@ -45,14 +45,15 @@
45
var intervalID = setInterval(function(){
46
if (typeof form.data('yiiActiveForm') === 'object') {
47
var attribute = form.yiiActiveForm('find', id);
48
- if (attribute !== false) {
+ if (typeof attribute === 'object') {
49
$.each(attribute, function (key, value) {
50
if (['id', 'input', 'container'].indexOf(key) == -1) {
51
wrapper.data('multipleInput').attributeDefaults[key] = value;
52
}
53
});
54
+ form.yiiActiveForm('remove', id);
55
- form.yiiActiveForm('remove', id);
56
+
57
wrapper.find('.multiple-input-list').find('input, select, textarea').each(function () {
58
methods.addAttribute.apply(this);
59
0 commit comments