Skip to content

Can't close mobile search bar once typed #11231

@BenGlassAtlas

Description

@BenGlassAtlas

Preconditions

  1. Magento 2.1.9 using the Luma theme (no customisations)

Steps to reproduce

  1. Load the homepage on a mobile device
  2. Tap on the search icon to access the search input
  3. Start typing (but do not submit)
  4. Now tap on the search icon again to close the search bar

Sometimes it will close, but if you open it again it will not close.

Expected result

  1. Search bar closes

Actual result

  1. Nothing, search bar stays open

Happens on iOS and Android devices using different browsers, it's because the active class is not removed.

I suspect this issue was introduced as a fix for #4282

GIF

Recorded on an iPhone 5s emulator running iOS 10.3 but can replicate it on real iPhone 7 running iOS 11 to (amongst other devices including Android).

search

Metadata

Metadata

Assignees

Labels

Fixed in 2.2.xThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.1.xThe issue has been reproduced on latest 2.1 releaseReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions