[wp-trac] [WordPress Trac] #46474: function matches() does not exist in the Twenty Nineteen theme
WordPress Trac
noreply at wordpress.org
Tue Mar 12 12:27:34 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: needs-patch needs-testing | Focuses:
---------------------------------------+------------------------------
Changes (by mukesh27):
* keywords: has-patch => needs-patch needs-testing
Comment:
@janpaulkleijn, Firefox shows an error when we focus on current page menu
item, Below your solution solve that issue for for me in Firefox.
{{{
if ( event.target != window.document && event.target.matches('.main-
navigation > div > ul > li a') ) {
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46474#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list