From 8c4a4962a0fccada412704fd5c20f4c18fe96ab0 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Fri, 5 Dec 2014 22:59:23 +0000 Subject: [PATCH] Twenty Twelve: menu on touch devices: fix jQuery selector for menu items with submenus. props babbardel, fixes #24767. Built from https://develop.svn.wordpress.org/trunk@30746 git-svn-id: http://core.svn.wordpress.org/trunk@30736 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- js/navigation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/navigation.js b/js/navigation.js index 34a640246..f7141bff7 100644 --- a/js/navigation.js +++ b/js/navigation.js @@ -42,7 +42,7 @@ } ); if ( 'ontouchstart' in window ) { - $( '.menu-item-has-children > a' ).on( 'touchstart.twentytwelve', function( e ) { + $('body').on( 'touchstart.twentytwelve', '.menu-item-has-children > a, .page_item_has_children > a', function( e ) { var el = $( this ).parent( 'li' ); if ( ! el.hasClass( 'focus' ) ) {