Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
davsire opened this issue Apr 23, 2024 · 1 comment · Fixed by #15720
Closed
Labels
LTS-PORTABLE Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@davsire
Copy link

davsire commented Apr 23, 2024

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

@davsire davsire added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Apr 23, 2024
@Zsvoboda87
Copy link

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

@mehmetcetin01140 mehmetcetin01140 added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels May 20, 2024
@mehmetcetin01140 mehmetcetin01140 added this to the 17.17.2 milestone May 20, 2024
@cetincakiroglu cetincakiroglu modified the milestones: 17.17.2, 17.18.0 May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LTS-PORTABLE Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
4 participants