You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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]
The text was updated successfully, but these errors were encountered:
@rafiqdeen Yeah I think this is a bug... Thanks for reporting it! The autocomplete shouldn't attempt to execute the filter when clicking on the field if it is already focused. We'll get this taken care of so that it doesn't call the filter callback in this scenario.
Additionally, at this point the autocomplete is not responsible for what appears in the dropdown as far as showing "No results found". We will leave this up to developers for now, but I do think it would be worth us considering adding this as an configuration option to make it easier in the future. Would you be able to add this idea to our Canny board here? This will allow others to vote on the feature request and provide discussion.
DRiFTy17
changed the title
[components-autocomplete--default] Auto Complete dropdown result providing incorrect results when "No Results" case
[autocomplete] dropdown should present user with "No results" text
Apr 2, 2024
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:
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](https://private-user-images.githubusercontent.com/9208269/318365139-5bc4e82c-40e5-4430-a3d6-b9c3e1cc32db.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2MTc5NDcsIm5iZiI6MTczOTYxNzY0NywicGF0aCI6Ii85MjA4MjY5LzMxODM2NTEzOS01YmM0ZTgyYy00MGU1LTQ0MzAtYTNkNi1iOWMzZTFjYzMyZGIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxNSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTVUMTEwNzI3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NzU4MTdhZDAzMzNmYTE0ZGFjM2RjZjkwYzllMmEzY2NkNGE1N2U3ZjQ3NzZhZmZhNDgzMDBiNTUwZjc5YzVjMSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.5FR5gzRdCvFCW324imxWsV8Cp3pcCr5UUbmNG3fbxCI)
Please complete the following information:
The text was updated successfully, but these errors were encountered: