Browse Source

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

Co-authored-by: Thomas Avery <43214426+Thomas-Avery@users.noreply.github.com>
pull/6137/head
cd-bitwarden 2 years ago committed by GitHub
parent
commit
f7278ef183
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      libs/components/src/multi-select/multi-select.component.html
  2. 6
      libs/components/src/multi-select/multi-select.component.ts

1
libs/components/src/multi-select/multi-select.component.html

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

6
libs/components/src/multi-select/multi-select.component.ts

@ -75,12 +75,6 @@ export class MultiSelectComponent implements OnInit, BitFormFieldControl, Contro @@ -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();

Loading…
Cancel
Save