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:
parent
834531bd98
commit
f7278ef183
|
@ -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"
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue