[wp-trac] [WordPress Trac] #52638: JS error when clicking a submenu heading on the collapsed admin menu

WordPress Trac noreply at wordpress.org
Wed Feb 24 11:54:13 UTC 2021


#52638: JS error when clicking a submenu heading on the collapsed admin menu
----------------------------+---------------------
 Reporter:  SergeyBiryukov  |       Owner:  (none)
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  5.7
Component:  Administration  |     Version:
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:  ui
----------------------------+---------------------

Comment (by SergeyBiryukov):

 In my testing, replacing `$thing.get(0).trigger( 'click' )` with
 `$thing.eq(0).trigger( 'click' )` removes the console error, but for some
 reason does not make the submenu heading clickable.

 Reverting to `$thing.get(0).click();` seems to work as expected, so I
 think we can go with that for now.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52638#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list