primefaces / primeng

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

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

Closed davsire closed 5 months ago

davsire commented 6 months 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

Zsvoboda87 commented 6 months ago

I have a similar issue. I am trying to get an emptyMessage and have group enabled, filter enabled but the default empty is not showing up or the template