Skip to content

Commit ea94496

Browse files
author
Eugene Tupikov
committed
small fix
1 parent eb215f2 commit ea94496

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/assets/src/js/jquery.multipleInput.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,11 @@
128128
wrapper = ele.closest('.multiple-input').first(),
129129
form = ele.closest('form');
130130

131+
// do not add attribute which are not the part of widget
132+
if (wrapper.length == 0) {
133+
return;
134+
}
135+
131136
form.yiiActiveForm('add', $.extend(wrapper.data('multipleInput').attributeDefaults, {
132137
'id': id,
133138
'input': '#' + id,

src/assets/src/js/jquery.multipleInput.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)