Missed addition of 2 new js files in 7c536920

This commit is contained in:
Deon George 2021-10-01 15:10:47 +10:00
parent 1a92d89911
commit cc49692545
No known key found for this signature in database
GPG Key ID: 7670E8DC27415254
2 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,8 @@
$(document).on('select2:open',(event) => {
const searchField = document.querySelector(
`.select2-search__field[aria-controls="select2-${event.target.getAttribute('data-select2-id')}-results"]`,
);
if (searchField) {
searchField.focus();
}
});

View File

@ -0,0 +1,3 @@
.select2-selection.select2-selection--single {
height: calc(2.25rem + 2px) !important;
}