[wp-trac] [WordPress Trac] #46474: function matches() does not exist in the Twenty Nineteen theme

WordPress Trac noreply at wordpress.org
Tue Mar 12 09:13:20 UTC 2019


#46474: function matches() does not exist in the Twenty Nineteen theme
---------------------------+------------------------------
 Reporter:  janpaulkleijn  |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Themes         |     Version:  5.1
 Severity:  normal         |  Resolution:
 Keywords:  has-patch      |     Focuses:
---------------------------+------------------------------

Comment (by janpaulkleijn):

 Steps (2) to reproduce update: To reproduce the issue, use the
 twentynineteen theme in the aforementioned Mozilla Firefox browser, go to
 the homepage and switch to another tab and then back to the twentynineteen
 theme.

 The error thrown by Mozilla firefox:

 {{{
 TypeError: event.target.matches is not a function
 }}}

 More specs about the error thrown by Mozilla firefox:

 {{{
 toggleSubmenuDisplay https://test.mega-service.nl/wp-content/themes
 /biggee-theme/js/touch-keyboard-navigation.js?ver=1.1:277
 }}}

 The line of code involved (line 277):

 {{{
 ...
 if ( event.target.matches('.main-navigation > div > ul > li a') ) {
 ...
 }}}

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


More information about the wp-trac mailing list