primeng icon indicating copy to clipboard operation
primeng copied to clipboard

emptyMessage appears before minLength is reached in autoComplete

Open wsz34 opened this issue 9 years ago • 0 comments

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

wsz34 avatar Jul 03 '17 14:07 wsz34