question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Random erasing of search query on Chrome 92 Android

See original GitHub issue

Description

When running on Android Chrome 92, I get weird behavior. When I enter a search string, everything works fine until I hit a certain letter. Then everything in the search field is removed.

It varies which letter causes the glitch. Check out the video below for an example:

https://www.youtube.com/watch?v=rYf5dsW5KKQ

I am using the following versions:

"@algolia/autocomplete-js": "^1.3.0",
"@algolia/autocomplete-plugin-algolia-insights": "^1.3.0",
"@algolia/autocomplete-plugin-query-suggestions": "^1.3.0",
"@algolia/autocomplete-plugin-recent-searches": "^1.3.0",
"@algolia/autocomplete-theme-classic": "^1.3.0",
"algoliasearch": "^4.10.5",
"algoliasearch-helper": "^3.5.5",
"htm": "^3.1.0",
"instantsearch.css": "^7.4.5",
"instantsearch.js": "^4.28.0",

Example (as shown in the video): I enter “se” in the search field. As soon as I enter “k”, “se” is removed and “k” is the only thing appearing in the search field.

When I inspect the state-object with the onStateChange event of Autocomplete, I find the the prevState does contain the first letters while the current state only contains the new letter.

I am actually seeing the same behavior in this official autocomplete-js example: https://l7tzs.csb.app/ (which is linked from the “See live demo” button on the page https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/autocomplete/js/

Here is a video where I demonstrate the bug on this specific sandbox example: https://youtu.be/rSbl26XJ828

Also asked about this on the community forum: https://discourse.algolia.com/t/possible-bug-on-chrome-android-erases-everything-in-input/13346

Environment

  • OS: Android
  • Browser: Chrome 92
  • Autocomplete version: 1.3.0

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:28 (10 by maintainers)

github_iconTop GitHub Comments

3reactions
nitechcommented, Apr 20, 2022

Thanks. It works.

3reactions
nitechcommented, Mar 8, 2022

I thought the world of quirk was gone with IE11, but it seems the spirit lives on, just manifesting in new ways. Perhaps the rendering engine of Android Chrome is in fact IE11?

Anyway. Looking forward to testing this out. It has been a quirky thing to figure out, and I admire the work that must have been put into locating and fixing the bug.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Random erasing of search query on Chrome 92 Android - Algolia ...
When running on Android Chrome 92, I get weird behavior. When I enter a search string, everything works fine until I hit a...
Read more >
Can't search direct on Chrome search bar, needs to go google ...
Chrome search is powered by Google Search engine. You conveniently enter a query then it directs you to a Google Search results page....
Read more >
My Search history has searches I never made, and that too in ...
Just random searches in Russian that I haven't searched for. ... I opened Chrome on my mobile (android) device and closed all the...
Read more >
The android browser cannot browse the developer site ...
I got here searching for what I think is a related issue. I think frames loaded dynamically wouldn't scroll down in order to...
Read more >
Top 6 Ways to Fix Google Chrome Search Engine Changing ...
There are multiple reasons behind the behavior. Someone might have changed the default browser on Chrome. The prime factor behind the search ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found