Skip to content

Commit eb2dd92

Browse files
author
Nikita Chubukov
committed
MAGETWO-91651: Navigation Menu problem on Mobile theme
- Added scroll to top menu items
1 parent 752dae4 commit eb2dd92

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/web/mage/menu.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,7 @@ define([
439439

440440
event.preventDefault();
441441
target = $(event.target).closest('.ui-menu-item');
442+
target.get(0).scrollIntoView();
442443

443444
if (!target.hasClass('level-top') || !target.has('.ui-menu').length) {
444445
window.location.href = target.find('> a').attr('href');

0 commit comments

Comments
 (0)