File tree Expand file tree Collapse file tree
src/admin/js/media-manager Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ function addDropZoneListenerToMediaManager( targetDocument ) {
155155 // inside the DropZoneComponent.
156156 //
157157 // @see https://github.com/WordPress/gutenberg/blob/f8140c4fcc8db2d6078ad76fd433c79df3543860/packages/components/src/drop-zone/index.tsx#L59
158- if ( target ?. classList . contains ( 'components-drop-zone' ) || target ?. hasAttribute ( 'data-is-drop-zone' ) || target ?. classList . contains ( 'uploader-editor-content' ) ) {
158+ if ( target ?. classList . contains ( 'components-drop-zone' ) || target ?. getAttribute ( 'data-is-drop-zone' ) === 'true' || target ?. classList . contains ( 'uploader-editor-content' ) ) {
159159 // Create a drop event with conditional bubbling
160160 // Use bubbles: false when in iframe to prevent doubling, but true for main document
161161 const isInIframe = targetDocument !== document
You can’t perform that action at this time.
0 commit comments