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.

Custom Search with autocomplete and dropdown not work on Android device

See original GitHub issue

Describe the bug

I have page containing:

  • Searchbar with customSearch: true
  • Dropdown with Ajax-Data loading
  • Custom dropdownContainerEl

Looks like everything is implemented according to sample provided in docs (section “Dropdown With Ajax-Data”).

I expect that my request to REST API is executed while I type, and results are rendered in dropdown. It works in desktop Chrome, iOS device and simulator, but do not work on Android device. In latter case, dropdown does not appear.

After some debugging, it seems like an issue inside F7, but I can not say that for sure.

To Reproduce

Steps to reproduce the behavior:

  1. Clone this sample repo: https://github.com/contfedorov/f7-issues/tree/android_search_suggest/
  2. Run app on Android device: cordova prepare android && cordova run android (Cordova CLI must be installed)
  3. Open app and tap search icon
  4. Start typing “er” to trigger API call. “Ervin Howell” and “Glenna Reichert” should be the results. They will be shown on iOS/Chrome, but not on Android device

Expected behavior

Search results are displayed in dropdown right under search bar

Actual Behavior

No dropdown is displayed

Screenshots

In both cases API request is performed correctly, but result is not rendered on Android.

Screen from iOS 14.5 simulator: f7-search-dropdown-ios

Screen from Android 11 simulator: f7-search-dropdown-android

Additional context

This code works perfectly on desktop Chrome, iOS device and simulator. Only Android device causes problems.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
booshcommented, Jul 2, 2021

Thanks. I’ll try that approach if I can’t fix this.

0reactions
stale[bot]commented, May 2, 2022

This issue has been automatically closed due to inactivity. If this issue is still actual, please, create the new one.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[v5] Custom Search with autocomplete and dropdown not ...
It works in desktop Chrome, iOS device and simulator, but do not work on Android device. In latter case, dropdown does not appear....
Read more >
Custom Search with autocomplete and dropdown not work on ...
It works in desktop Chrome, iOS device and simulator, but do not work on Android device. In latter case, dropdown does not appear....
Read more >
Google Search Autocomplete Not Working? Try This Fix - Alphr
Open the Custom Search Engine control panel (you will need to log into your Google account). · Click on Edit Search Engine and...
Read more >
Manage Google autocomplete predictions - Google Search Help
Turn off Personal results. Important: When Personal results are off, you won't get personalized predictions or recommendations based on your past searches.
Read more >
autocomplete won't show dropdown list - Stack Overflow
I used autocomplete and when database was small, it's worked fine, but when database grew, dropdown of autocomplete won't work (not show).
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