Skip to content

Commit

Permalink
Fixed #15078 - Update backspace keyboard support for single selection
Browse files Browse the repository at this point in the history
  • Loading branch information
cetincakiroglu committed Mar 19, 2024
1 parent f26e38f commit 4b87415
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/components/autocomplete/autocomplete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1371,6 +1371,10 @@ export class AutoComplete implements AfterViewChecked, AfterContentInit, OnDestr

event.stopPropagation(); // To prevent onBackspaceKeyOnMultiple method
}

if (!this.multiple && this.showClear && this.findSelectedOptionIndex() != -1) {
this.clear();
}
}

onArrowLeftKeyOnMultiple(event) {
Expand Down

0 comments on commit 4b87415

Please sign in to comment.