Skip to content

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

@rafiqdeen

Description

@rafiqdeen

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]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions