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

Return focus to search input after closing autocomplete dropdown #8161

Conversation

evktalo
Copy link
Contributor

@evktalo evktalo commented Jan 17, 2017

After closing the autocomplete dropdown by clicking away from it, return focus to the search input element.

Otherwise the searchbox that was opened will not close when clicking away from it. You need to return the focus to it by clicking it again, and only then you can close it by clicking away from it.

Steps to reproduce: Search something that gets some search result so that the autocomplete gets populated. Start searching for it again so that the dropdown opens. Click away (dropdown should close). Click away again (the search bar will not close, against user expectation).

…urn focus to the search input element.

Otherwise the searchbox that was opened will not close when clicking away from it. You need to return the focus to it by clicking it again, and only then you can close it by clicking away from it.

Steps to reproduce: Search something that gets some search result so that the autocomplete gets populated. Start searching for it again so that the dropdown opens. Click away (dropdown should close). Click away again (the search bar will not close, against user expectation).
@okorshenko
Copy link
Contributor

Thank you for contribution to Magento 2 project!

@okorshenko okorshenko added this to the February 2017 milestone Feb 11, 2017
@vrann vrann added the simple label Mar 11, 2017
@evktalo evktalo deleted the search-return-focus-after-closing-autocomplete branch March 20, 2017 07:51
@Ctucker9233
Copy link

@magento-engcom-team This appears to not be included in 2.1.10. What version will have this simple fix?

magento-devops-reposync-svc pushed a commit that referenced this pull request Jun 13, 2023
…fixes-02162023

cia-2.4.7-beta1-develop-bugfixes-02162023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants