Make WordPress Core

Changeset 50429 for trunk


Ignore:
Timestamp:
02/24/2021 12:20:08 PM (4 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/js/_enqueues/admin/common.js

    r50420 r50429  
    841841     */
    842842    $adminmenu.on('click.wp-submenu-head', '.wp-submenu-head', function(e){
    843         $(e.target).parent().siblings('a').get(0).trigger( 'click' );
     843        $(e.target).parent().siblings('a').get(0).click();
    844844    });
    845845
Note: See TracChangeset for help on using the changeset viewer.