Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #5495 (Mobile navigation submenus need two clicks to open) #5496

Merged
merged 2 commits into from
Aug 25, 2016

Conversation

AntonEvers
Copy link
Contributor

method select is overwritten to shift this.active from the .all-categories link to the clicked menu node. After opening a menu item this.active is filled with the .all-categories link and the select method does not expect that. It closes all menu items and skips the activation of the selected menu item.

A collapseAll event is triggered for mobile devices if an open menu item is clicked so it closes it again.
method expand is overwritten to skip expansion of the clicked menu node of the menu node was already open. This event would otherwise take place directly after the added collapseAll.

Although this is a working solution it does rewrite two major methods of the jQuery UI menu which I feel should not be necessary. So if someone would like to look into a different solution, be welcome.

Anton Evers added 2 commits July 6, 2016 13:14
method `select` is overwritten to shift `this.active` from the `.all-categories` link to the clicked menu node. After opening a menu item `this.active` is filled with the `.all-categories` link and the `select` method does not expect that. It closes all menu items and skips the activation of the selected menu item.

A `collapseAll` event is triggered for mobile devices if an open menu item is clicked so it closes it again.
method `expand` is overwritten to skip expansion of the clicked menu node of the menu node was already open. This event would otherwise take place directly after the added `collapseAll`.

Although this is a working solution it does rewrite two major methods of the jQuery UI menu which I feel should not be necessary. So if someone would like to look into a different solution, be welcome.
@AntonEvers AntonEvers closed this Jul 13, 2016
@AntonEvers AntonEvers reopened this Jul 13, 2016
@vkorotun vkorotun added Progress: accept bug report Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development bugfix linked and removed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development bug report labels Aug 4, 2016
@vkorotun
Copy link
Contributor

vkorotun commented Aug 8, 2016

Internal ticket: MAGETWO-56547

@vkorotun vkorotun added Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development and removed linked labels Aug 22, 2016
@mmansoor-magento mmansoor-magento merged commit f69a1fc into magento:develop Aug 25, 2016
@AntonEvers AntonEvers deleted the patch-3 branch June 13, 2017 05:07
magento-cicd2 pushed a commit that referenced this pull request Apr 28, 2020
Recently Compared widget still visible after logout (Persistant enabled)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Frontend bugfix Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development Progress: accept
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants