Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SearchBox autocomplete retains previous recommendations #2165

Open
kevindenham opened this issue Aug 10, 2021 · 0 comments
Open

SearchBox autocomplete retains previous recommendations #2165

kevindenham opened this issue Aug 10, 2021 · 0 comments

Comments

@kevindenham
Copy link

kevindenham commented Aug 10, 2021

The autocomplete suggestions on the default search box are not removed/hidden when the minimum suggestion input length is not met once a set of suggestions has already been shown.

To replicate:
Add the search box to a page with default settings
Type a word with a minimum of 3 letters that contains matching content in the search index
Delete the text in the search box
Begin typing again but only input 1 or 2 letters

Example: (see screen cap)

What occurs is that the previous autocomplete constructor and result dataset is used to make suggestions rather than waiting for the minimum suggestion input length to be hit again.

This could potentially be even more confusing if the suggestion minimum is increased in the widget designer as users would see incomplete suggestions since the index is not requeried.

Possible fix:
feather-widgets/Telerik.Sitefinity.Frontend.Search/Mvc/Scripts/SearchBox/Search-box.js
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant