Skip to content

Commit

Permalink
Merge pull request #14303 from SoyDiego/fix-autocomplete-stop-events-…
Browse files Browse the repository at this point in the history
…propagation

fix(autocomplete): Stop event propagations on remove option
  • Loading branch information
cetincakiroglu authored Dec 8, 2023
2 parents 0cdb74d + 0cf7080 commit 93fcc69
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/components/autocomplete/autocomplete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1418,6 +1418,8 @@ export class AutoComplete implements AfterViewChecked, AfterContentInit, OnDestr
}

removeOption(event, index) {
event.stopPropagation();

const removedOption = this.modelValue()[index];
const value = this.modelValue()
.filter((_, i) => i !== index)
Expand Down

0 comments on commit 93fcc69

Please sign in to comment.