Skip to content
Snippets Groups Projects
Commit 421ca931 authored by Steinwender, Tamara's avatar Steinwender, Tamara
Browse files

Fix select2 focus problem #58

parent 21894591
No related branches found
No related tags found
No related merge requests found
Pipeline #51973 passed
...@@ -194,9 +194,17 @@ export class CheckInPlaceSelect extends ScopedElementsMixin(AdapterLitElement) { ...@@ -194,9 +194,17 @@ export class CheckInPlaceSelect extends ScopedElementsMixin(AdapterLitElement) {
that.isSearching = false; that.isSearching = false;
} }
} }
}).on("select2:open", function (e) {
const selectId = e.target.id;
that.$(".select2-search__field[aria-controls='select2-" + selectId + "-results']").each(function (
key,
value,
) {
value.focus();
});
}).on("select2:select", function (e) { }).on("select2:select", function (e) {
that.$('#check-in-place-select-dropdown').removeClass('select2-bug'); that.$('#check-in-place-select-dropdown').removeClass('select2-bug');
// set custom element attributes // set custom element attributes
const identifier = e.params.data.id; const identifier = e.params.data.id;
const maxCapacity = e.params.data.maximumPhysicalAttendeeCapacity; const maxCapacity = e.params.data.maximumPhysicalAttendeeCapacity;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment