forge
forge copied to clipboard
[autocomplete] dropdown should present user with "No results" text
Describe the bug: When searching a term that provide No Results in the dropdown then clicking at the end of the term is providing default dropdown results which looks like the dropdown showing incorrect result for the searched term.
To Reproduce: Steps to reproduce the behavior:
- Go to https://forge.tylerdev.io/main/?path=/docs/components-autocomplete--default
- Click on "Choose State" Input field and Enter "xyz"
- Again click inside the Input field.
- Then seeing default search results in the dropdown.
Expected behavior: If the term doesn't have any results, show a warning "No Results found" or Preserve the empty dropdown even after clicking the input field second time if the search term have no results.
Screenshots:
Please complete the following information:
- Forge version: [e.g. v2.0.0]
- I have searched existing issues before creating this report? [Y/N]
- Browser: [e.g. Chrome, Firefox, Safari, All]
- Platform: [e.g. desktop, mobile, All]
- OS: [e.g. Windows, Mac, Linux, iOS, Android, All]