From 85f1636132b882296fef86cf9e804312b5f7263a Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 24 Feb 2021 12:20:08 +0000 Subject: [PATCH] Administration: Revert the change to `click` event handler for fly-out submenus. The `click()` method there is not the jQuery method, but is an HTML DOM method instead. This makes the fly-out submenu header clickable again when the menu is folded. Follow-up to [50420]. Props peterwilsoncc. Fixes #52638. See #51812. git-svn-id: https://develop.svn.wordpress.org/trunk@50429 602fd350-edb4-49c9-b593-d223f7449a82 --- src/js/_enqueues/admin/common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/_enqueues/admin/common.js b/src/js/_enqueues/admin/common.js index 41d2f94f4a..f0807f989e 100644 --- a/src/js/_enqueues/admin/common.js +++ b/src/js/_enqueues/admin/common.js @@ -840,7 +840,7 @@ $document.ready( function() { * @return {void} */ $adminmenu.on('click.wp-submenu-head', '.wp-submenu-head', function(e){ - $(e.target).parent().siblings('a').get(0).trigger( 'click' ); + $(e.target).parent().siblings('a').get(0).click(); }); /**