Skip to content

Detached mode fails to initialize on iOS 13.6 and below #597

@deresatom

Description

@deresatom

Description

On iOS 13.6 and below the detachedMediaQuery fails to create an event listener and bugs out.

NOTE: If I set detachedMediaQuery: 'none' it works perfectly. I assume it can't read the --aa-detached-modal-media-query?

Solution might be to fall back (disable the detached mode) if the CSS variable can't be read.

Reproduction

Steps
0, have an iOS 13.6 device

  1. Go to https://4keez.csb.app/
  2. autocomplete crashes,
detachedMediaQuery.mp4

Expected behavior

It should initialize / fall back to disable it completely.

Environment

  • OS: iOS 13.6 and below
  • Browser: Chrome, Safari
  • Autocomplete version: 1.1.0

While iOS 13.6 is not the latest version, but some still has this outdated update and unfortunately this bug ruins the search experience completely for them as the autocomplete crashes and fails to load.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions