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

Suggestions are automatically displayed in Safari if there is content in the field and 'autofocus' is set #842

Open
fschiettecatte opened this issue Oct 10, 2022 · 0 comments

Comments

@fschiettecatte
Copy link

Strange issue which depends on a combination of factors. The suggestions are automatically displayed on Safari if there is content in the field and 'autofocus' is set in the fields. This does not happen on Chrome, Firefox or Microsoft Edge.

Visually what happens is that a search is run, the results are displayed and the search field is pre-filled (using value="foo") with the user's search and the 'autofocus' flag is set so that the cursor automatically positions itself in the field so the user can change the search if needed, and autocomplete displays the suggestions event though the user has not done anything.

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