forge icon indicating copy to clipboard operation
forge copied to clipboard

[autocomplete] dropdown should present user with "No results" text

Open rafiqdeen opened this issue 10 months ago • 2 comments

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:

  1. Go to https://forge.tylerdev.io/main/?path=/docs/components-autocomplete--default
  2. Click on "Choose State" Input field and Enter "xyz"
  3. Again click inside the Input field.
  4. 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: Screenshot from 2024-04-01 12-45-32

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]

rafiqdeen avatar Apr 01 '24 07:04 rafiqdeen