[wp-trac] [WordPress Trac] #57308: Nav menu on Mobile remains open after clicking on an anchor link

WordPress Trac noreply at wordpress.org
Sat Dec 10 20:58:46 UTC 2022


#57308: Nav menu on Mobile remains open after clicking on an anchor link
--------------------------+-----------------------------
 Reporter:  nickpagz      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Menus         |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Running WordPress version 6.1

 **Steps to reproduce:**
 * Install WordPress, use the default Twenty twenty-three or Twenty twenty-
 two theme
 * Create a page, add some ipsum lorem to give length to the page, add a
 link to an element at the bottom of the page (#news for example), set this
 page as the home page from Reading settings
 * Create a menu item that links to your element on the page (#news in this
 example)
 * View the page on your mobile device
 * Click/tap the mobile menu icon to open the menu overlay
 * Click/tap on the #news link

 **Expected behaviour:** the menu overlay closes and the page scrolls to
 the relevant element (the one with the #news anchor)

 **What happens instead:** The menu overlay does not close when you click
 the link, obscuring the page content. Menu needs to be closed manually to
 view page content.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57308>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list