Skip to content

Commit

Permalink
Merge pull request #16238 from primefaces/issue-16227
Browse files Browse the repository at this point in the history
Fixed #16227 - Autocomplete: Error when deleting input text if virtua…
  • Loading branch information
cetincakiroglu authored Aug 15, 2024
2 parents 2929519 + 472a9ec commit c13745a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/app/components/autocomplete/autocomplete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1103,9 +1103,7 @@ export class AutoComplete implements AfterViewChecked, AfterContentInit, OnDestr
if (query.length === 0 && !this.multiple && !this.completeOnFocus) {
this.onClear.emit();

setTimeout(() => {
this.hide();
});
this.hide();
} else {
if (query.length >= this.minLength) {
this.focusedOptionIndex.set(-1);
Expand Down

0 comments on commit c13745a

Please sign in to comment.