primefaces / primeng

The Most Complete Angular UI Component Library
https://primeng.org
Other
9.53k stars 4.47k forks source link

Autocomplete: Showing empty overlay when has no suggestions and showEmptyMessage is false #15344

Open Davitorino opened 2 weeks ago

Davitorino commented 2 weeks ago

Describe the bug

When the autocomplete's suggestions is empty and the prop showEmptyMessage is set to false the dropdown overlay is still showing, but blank, like the image: image

I solve this overriding the method handleSuggestionsChange from this image to this image

I don't know if this is an expected behavior but seems like an error to me.

Environment

I'm using angular v16 with primeNG v16.

Reproducer

https://stackblitz.com/edit/stackblitz-starters-zbpeqq?file=src%2Fapp.component.ts

Angular version

16.2.12

PrimeNG version

16.9.1

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

18.19.0

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response