From f7278ef1833f68f230d7f10fd6c53f1252138652 Mon Sep 17 00:00:00 2001 From: cd-bitwarden <106776772+cd-bitwarden@users.noreply.github.com> Date: Mon, 28 Aug 2023 08:09:04 -0400 Subject: [PATCH] Project drop downs add on enter not on tab (#5953) Co-authored-by: Thomas Avery <43214426+Thomas-Avery@users.noreply.github.com> --- .../components/src/multi-select/multi-select.component.html | 1 - libs/components/src/multi-select/multi-select.component.ts | 6 ------ 2 files changed, 7 deletions(-) diff --git a/libs/components/src/multi-select/multi-select.component.html b/libs/components/src/multi-select/multi-select.component.html index d66a06e9e5..1c972fbea4 100644 --- a/libs/components/src/multi-select/multi-select.component.html +++ b/libs/components/src/multi-select/multi-select.component.html @@ -11,7 +11,6 @@ notFoundText="{{ 'multiSelectNotFound' | i18n }}" clearAllText="{{ 'multiSelectClearAll' | i18n }}" [multiple]="true" - [selectOnTab]="true" [closeOnSelect]="false" (close)="onDropdownClosed()" [disabled]="disabled" diff --git a/libs/components/src/multi-select/multi-select.component.ts b/libs/components/src/multi-select/multi-select.component.ts index 89f9e5cb91..79d32c44cd 100644 --- a/libs/components/src/multi-select/multi-select.component.ts +++ b/libs/components/src/multi-select/multi-select.component.ts @@ -75,12 +75,6 @@ export class MultiSelectComponent implements OnInit, BitFormFieldControl, Contro return false; } - if (this.select.isOpen && event.key === "Enter" && !hasModifierKey(event)) { - this.select.close(); - event.preventDefault(); - return false; - } - if (this.select.isOpen && event.key === "Escape" && !hasModifierKey(event)) { this.selectedItems = []; this.select.close();