Title: Javascript error (touch-keyboard-navigation.js)
Last modified: July 5, 2019

---

# Javascript error (touch-keyboard-navigation.js)

 *  Resolved [anotherbreed](https://wordpress.org/support/users/anotherbreed/)
 * (@anotherbreed)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/javascript-error-touch-keyboard-navigation-js/)
 * Hi there,
 * I’m using twenty nineteen, and just noticed that I have an error in my javascript
   debugger (using Firefox 67.0.4 on Windows 10):
 *     ```
       TypeError: event.target.matches is not a function
           toggleSubmenuDisplay https://www.mysite.com/wp-content/themes/twentynineteen/js/touch-keyboard-navigation.js?ver=1.1:277
       ```
   
 * Not sure what is not working or why I get this error, any idea to get rid of 
   it would be appreciated. Thanks

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [6 years, 11 months ago](https://wordpress.org/support/topic/javascript-error-touch-keyboard-navigation-js/#post-11704581)
 * Can you show us your site? I don’t see that issue on the theme demo
 *  Thread Starter [anotherbreed](https://wordpress.org/support/users/anotherbreed/)
 * (@anotherbreed)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/javascript-error-touch-keyboard-navigation-js/#post-11709635)
 * Hi Andrew,
 * thanks for your fast reply! Never mind, I’ve realized that it only happens when
   I have the inspector open and click somewhere in the source code and after that,
   I click somewhere on my website.
 * It won’t be a problem for visitors I guess.
 * Many thanks

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Javascript error (touch-keyboard-navigation.js)’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/twentynineteen/3.3/screenshot.
   png)
 * Twenty Nineteen
 * [Support Threads](https://wordpress.org/support/theme/twentynineteen/)
 * [Active Topics](https://wordpress.org/support/theme/twentynineteen/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/twentynineteen/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/twentynineteen/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [anotherbreed](https://wordpress.org/support/users/anotherbreed/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/javascript-error-touch-keyboard-navigation-js/#post-11709635)
 * Status: resolved