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 b5b935da2db2f895f15ce114c106f94f75f7d2f6..d2a2594896e49ab03c178bf7b7fd5c2583b43667 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 @@ -168,6 +168,8 @@ export class CheckInPlaceSelect extends ScopedElementsMixin(LitElement) { }; }, processResults: function (data) { + that.$('#check-in-place-select-dropdown').addClass('select2-bug'); + that.lastResult = data; let transformed = that.jsonld.transformMembers(data, checkInPlaceContext); const results = []; @@ -185,6 +187,8 @@ export class CheckInPlaceSelect extends ScopedElementsMixin(LitElement) { } } }).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; @@ -356,6 +360,10 @@ export class CheckInPlaceSelect extends ScopedElementsMixin(LitElement) { -webkit-appearance: none; } + /* https://github.com/select2/select2/issues/5457 */ + .select2-bug .loading-results { + display: none !important; + } ` ]; }