Skip to content

Commit

Permalink
Merge pull request #15089 from primefaces/issue-15078
Browse files Browse the repository at this point in the history
Fixed #15078 - Update backspace keyboard support for single selection
  • Loading branch information
cetincakiroglu authored Mar 19, 2024
2 parents f26e38f + 4b87415 commit 3d07e01
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 3d07e01

Please sign in to comment.