[wp-trac] [WordPress Trac] #52006: Twenty Twenty-One: anchor links don't work in mobile menu

WordPress Trac noreply at wordpress.org
Mon Dec 21 15:03:55 UTC 2020


#52006: Twenty Twenty-One: anchor links don't work in mobile menu
---------------------------+-------------------------
 Reporter:  macmanx        |       Owner:  desrosj
     Type:  defect (bug)   |      Status:  closed
 Priority:  normal         |   Milestone:  5.6.1
Component:  Bundled Theme  |     Version:  5.6
 Severity:  normal         |  Resolution:  fixed
 Keywords:  has-patch      |     Focuses:  javascript
---------------------------+-------------------------
Changes (by desrosj):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"49854" 49854]:
 {{{
 #!CommitTicketReference repository="" revision="49854"
 Twenty Twenty-One: Allow local anchor links to be used in primary
 navigation.

 This adds some JavaScript to detect when an anchor link is clicked within
 the primary navigation on mobile devices and closes the menu before
 scrolling to the location on the page.

 Props poena, macmanx, t-p.
 Fixes #52006.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52006#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list