diff --git a/packages/check-in-place-select/src/check-in-place-select.js b/packages/check-in-place-select/src/check-in-place-select.js index 992b6148f629c71e398f23be0d4982f816a0f2ac..093a7d1deb45eb8347239a970d8e521ab4cc2d5c 100644 --- a/packages/check-in-place-select/src/check-in-place-select.js +++ b/packages/check-in-place-select/src/check-in-place-select.js @@ -194,9 +194,17 @@ export class CheckInPlaceSelect extends ScopedElementsMixin(AdapterLitElement) { 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) { that.$('#check-in-place-select-dropdown').removeClass('select2-bug'); - // set custom element attributes const identifier = e.params.data.id; const maxCapacity = e.params.data.maximumPhysicalAttendeeCapacity;