algolia / algoliasearch-wordpress

❌🗑🙅‍♂️ Algolia Search plugin for WordPress is no longer supported. Please use our API client guide instead
https://www.algolia.com/doc/integration/wordpress/getting-started/quick-start/
GNU General Public License v2.0
358 stars 114 forks source link

Algolia instantsearch hides results when iOS keyboard is closed #777

Closed cnbjornsen closed 6 years ago

cnbjornsen commented 6 years ago

What did you expect to happen?

When I search from Safari iOS 11.4 I expect to be able to search. Once I have typed in or narrowed down my search, I would like to close the keyboard in order to make more space to view results.

What happened instead?

When I have finished my search and press OK to hide the keyboard, Algolia instantsearch will hide as well. The issue seems to be with instantsearch.js as it is also present in the Shopify app. Perhaps it is due to the fact, that on iOS, when you close the keyboard, it removes focus from the input field and thus hides results.

How can we reproduce this behavior?

The issue is there by default when installing Algolia. To reproduce, install Angolia, set it up and do your search. Close/hide the keyboard of your iPhone.

Can you provide a link to a page which shows this issue? http://test.waikiki.dk (WooCommerce) https://www.blacksnow.dk (Shopify)

Technical info

screenrecording_07-17-2018 11-05-39

cnbjornsen commented 6 years ago

Fixed it from my post in the instantsearch.js repo. https://github.com/algolia/instantsearch.js/issues/3036 Go there to see the solution. There's a solution for both WooCommerce and Shopify.