@ardium-ui/ui 5.0.0-alpha.48 → 5.0.0-alpha.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4263,8 +4263,7 @@ class ArdiumSelectComponent extends _FormFieldComponentBase {
|
|
|
4263
4263
|
}
|
|
4264
4264
|
async _onEnterPress(event) {
|
|
4265
4265
|
event.preventDefault();
|
|
4266
|
-
let shouldClose =
|
|
4267
|
-
console.log('enter pressed', this.itemStorage.highlightedItems());
|
|
4266
|
+
let shouldClose = !this.keepOpen();
|
|
4268
4267
|
//select the currently highlighted option
|
|
4269
4268
|
if (this.isOpen() && this.firstHighlightedItem()) {
|
|
4270
4269
|
if ((this.clearable() || this.multiselectable()) && this.itemStorage.highlightedItems().every(item => item.selected)) {
|
|
@@ -4282,13 +4281,10 @@ class ArdiumSelectComponent extends _FormFieldComponentBase {
|
|
|
4282
4281
|
else {
|
|
4283
4282
|
shouldClose = false;
|
|
4284
4283
|
}
|
|
4285
|
-
if (
|
|
4284
|
+
if (shouldClose) {
|
|
4286
4285
|
this.itemStorage.clearAllHighlights();
|
|
4287
4286
|
this.close();
|
|
4288
4287
|
}
|
|
4289
|
-
else {
|
|
4290
|
-
this.open();
|
|
4291
|
-
}
|
|
4292
4288
|
}
|
|
4293
4289
|
_onSpacePress(event) {
|
|
4294
4290
|
if (this.isOpen())
|