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

emptyMessage appears before minLength is reached in autoComplete #3284

Closed
wsz34 opened this issue Jul 3, 2017 · 0 comments
Closed

emptyMessage appears before minLength is reached in autoComplete #3284

wsz34 opened this issue Jul 3, 2017 · 0 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@wsz34
Copy link

wsz34 commented Jul 3, 2017

I'm submitting a ... (check one with "x")

[X] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35

Plunkr Case (Bug Reports)
http://plnkr.co/edit/fw41pIZ1tojfLoTEi1tg?p=preview

Current behavior
emptyMessage appears before minLength is reached in autoComplete component

Expected behavior
emptyMessage should be shound only if search does not return any results

Minimal reproduction of the problem with instructions
Open http://plnkr.co/edit/fw41pIZ1tojfLoTEi1tg?p=preview
Run it
Start typing "test"
Notice that after first symbol message "No results found" appears (minLength is set to 3)
Continue typing
Notice that after entered "tes", one result is found ("Test")

I believe that before search method is called, emptyMessage should not be shown to user.

  • Angular version: 4.1.3
  • PrimeNG version: 4.1.0-RC3
  • Browser: all
  • Language: all
@Mrtcndkn Mrtcndkn self-assigned this Jul 4, 2017
@Mrtcndkn Mrtcndkn added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Jul 4, 2017
@cagataycivici cagataycivici added this to the 4.1.4 milestone Aug 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

3 participants