[wp-trac] [WordPress Trac] #45903: Twenty Nineteen: Some menu clicks trigger console errors

WordPress Trac noreply at wordpress.org
Sun Jun 27 08:27:42 UTC 2021


#45903: Twenty Nineteen: Some menu clicks trigger console errors
-------------------------------------------------+-------------------------
 Reporter:  kjellr                               |       Owner:  audrasjb
     Type:  defect (bug)                         |      Status:  assigned
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  Bundled Theme                        |     Version:  5.0
 Severity:  normal                               |  Resolution:
 Keywords:  has-screenshots has-patch needs-     |     Focuses:  javascript
  refresh                                        |
-------------------------------------------------+-------------------------

Comment (by McAlyster):

 As a quick fix to get rid of the flowing annoying errors, I added a
 conditional test for the existence of
 ''event.target.matches''

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

 I did not test any further for potential adversarial consequences but my
 child theme is working like a charm now.

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


More information about the wp-trac mailing list