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

Fix #14744: Autocomplete: Empty list showed, when no item fit condition #14746

Closed

Conversation

kkoripl
Copy link

@kkoripl kkoripl commented Feb 7, 2024

Fix: #14744

Added condition to actually have items to show in list to ngif on mentioned list.
I'm a bit unsure about the name of list, cause needed to change it.

Before:
emptydropdown-without-fix

After:
emptydropdown-with-fix

Copy link

vercel bot commented Feb 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
primeng ⬜️ Ignored (Inspect) Visit Preview Feb 7, 2024 10:36am

@kkoripl kkoripl changed the title Empty autocomplete results not shown as empty html list Fix #14744: Autocomplete: Empty list showed, when no item fit condition Feb 7, 2024
@cetincakiroglu
Copy link
Contributor

Hi,

The root cause of issue is showEmptyMessage is not working when search resulted with empty. I've changed the showEmptyMessage default value from false to true and add related missing styles. Now it will display No result found message.

Thanks for the effort and support! Closing the PR since it's fixed by Core Team.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Autocomplete: emptyMessage is not showed, when no item fit condition
2 participants