Skip to content

Detached Mode History selection scrolls down to the bottom on iOS devices #592

@deresatom

Description

@deresatom

Description

This one might be related to #591 because it tries to scroll into a miscalculated position? Not sure about that though.

By selecting a element from the History section on the detached panel (createLocalStorageRecentSearchesPlugin) it will scroll to the bottom of the page on some iOS devices.

iOS 14.5.1 seems to be having this issue, older versions like 14.4 worked for some of my users, but it scrolled down for others.

It works perfectly on:

  • Android devices
  • Windows 10
  • Safari desktop

Note: it also works by selecting an autocomplete value which is NOT from the history. So only the History plugin bugs it somehow.

Reproduction

Steps

  1. Go to codesandbox on an iOS device
  2. Open search input
  3. select an item from History
scrollbug.mp4

Video shows: starting: top of the screen, after clicking the history value, it jumps down to the bottom.

Expected behavior

Keep the current state and don't scroll down.

Environment

  • OS: iOS 14.5.1 / multiple iOS devices
  • Browser: Safari / Chrome
  • Autocomplete version: 1.0.1

Update: new codesandbox for easier debugging

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions