Skip to content

Commit 9cdf4ae

Browse files
committed
AC-105: Update Third Party library: jquery-editable(editableMultiselect)
- Update jquery-multiselect
1 parent ace84cb commit 9cdf4ae

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/web/jquery/editableMultiselect/js/jquery.multiselect.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ define([
116116
e.preventDefault();
117117
o.toggleAddButton && buttonAdd.hide();
118118
container.show();
119-
input.focus();
119+
input.trigger('focus');
120120
if (input.parents(o.mselectListClass).length) {
121121
list.scrollTop(list.height());
122122
}
@@ -162,7 +162,7 @@ define([
162162
.end();
163163

164164
list.children('.' + o.mselectListItemClass + '').length
165-
? list.children('.' + o.mselectListItemClass + ':last').after(item)
165+
? list.children('.' + o.mselectListItemClas ).last().after(item)
166166
: list.prepend(item);
167167

168168
select.append('<option value="' + v + '" selected="selected">' + v + '</option>');
@@ -181,12 +181,13 @@ define([
181181
list[list.children().length ? 'show' : 'hide']();
182182

183183
if (ch.length >= size && !list.hasClass(o.mselectItemsWrapperOverflowClass)) {
184-
list.height(list.children('.' + o.mselectListItemClass + ':first')
184+
list.height(list.children('.' + o.mselectListItemClass)
185+
.first()
185186
.outerHeight(true) * size)
186187
.addClass(o.mselectItemsWrapperOverflowClass);
187188
}
188189
};
189190
reset();
190191
}).end();
191192
};
192-
});
193+
});

0 commit comments

Comments
 (0)