Skip to content
This repository has been archived by the owner on Mar 9, 2024. It is now read-only.

Commit

Permalink
Update widgets.js to address error message in console
Browse files Browse the repository at this point in the history
  • Loading branch information
KTS915 authored Oct 9, 2023
1 parent 06ebb9d commit 8d6a656
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/wp-admin/js/widgets.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,11 +213,11 @@ window.wpWidgets = {
*
* @param {Object} event jQuery event object.
*/
out: function() {
out: function( event ) {
setTimeout( function() {
var sidebar = this.querySelector( 'ul' );
var sidebar = event.target.querySelector( 'ul' );
if ( ! sidebar.classList.contains( 'ui-droppable-hover' ) ) {
this.querySelector( 'details' ).removeAttribute( 'open' );
event.target.querySelector( 'details' ).removeAttribute( 'open' );
}
}, 0 );
}
Expand Down

0 comments on commit 8d6a656

Please sign in to comment.