Syed Syed - 4 days ago 5
HTML Question

On small screen, Signle Page AMP-HTML's sidebar menu closing issue

I have created a single page site, when menu items are clicked, the page scroll to anchors defined in page. The menus are working fine on large screen (desktop) and when clicked the page scroll to the section, but on small screen (mobile) AMP sidebar menu doesn't close after tapping on a menu item and if you press the close button, then it doesn't go to the section of page that was selected in the menu.

Answer

As found at this issue on Github:

amp-sidebar pops the history when it's canceled so the navigation is canceled

it's a known bug with single page anchor navigation, but:

This should be fixed in the next release

the relative fix branch is now (2016-11-30) under review

Comments