Project drop downs add on enter not on tab (#5953)

Co-authored-by: Thomas Avery <43214426+Thomas-Avery@users.noreply.github.com>
This commit is contained in:
cd-bitwarden 2023-08-28 08:09:04 -04:00 committed by GitHub
parent 834531bd98
commit f7278ef183
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 7 deletions

View File

@ -11,7 +11,6 @@
notFoundText="{{ 'multiSelectNotFound' | i18n }}" notFoundText="{{ 'multiSelectNotFound' | i18n }}"
clearAllText="{{ 'multiSelectClearAll' | i18n }}" clearAllText="{{ 'multiSelectClearAll' | i18n }}"
[multiple]="true" [multiple]="true"
[selectOnTab]="true"
[closeOnSelect]="false" [closeOnSelect]="false"
(close)="onDropdownClosed()" (close)="onDropdownClosed()"
[disabled]="disabled" [disabled]="disabled"

View File

@ -75,12 +75,6 @@ export class MultiSelectComponent implements OnInit, BitFormFieldControl, Contro
return false; 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)) { if (this.select.isOpen && event.key === "Escape" && !hasModifierKey(event)) {
this.selectedItems = []; this.selectedItems = [];
this.select.close(); this.select.close();