Improve input field for adding new team [SCI-6155]

This commit is contained in:
Oleksii Kriuchykhin 2022-05-04 14:24:53 +02:00
parent 2bda271615
commit 3d26da9e5e

View file

@ -44,6 +44,7 @@
labelHTML: true,
tagClass: 'users-dropdown-list',
inputTagMode: true,
selectKeys: [13, 32, 44, 188],
customDropdownIcon: () => { return '<i class="fas fa-search right-icon"></i>'; },
onChange: () => {
let values = dropdownSelector.getValues(emailsInput);
@ -57,6 +58,14 @@
}
});
modal.find('.search-field').focusout(function() {
if ($(this).val()) {
$(this).trigger(
$.Event('keypress', { keyCode: 13 })
);
}
});
dropdownSelector.init('#role', {
noEmptyOption: true,
singleSelect: true,