Skip to content

Commit 743eb45

Browse files
author
Hwashiang Yu
committed
MC-4232: Button text draggable triggers the image drop zones
- Added value comparison for readability
1 parent ffc68a6 commit 743eb45

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/code/Magento/PageBuilder/view/adminhtml/web/js/form/element/image-uploader.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,7 @@ define([
100100
$otherDropzones = $(this.dropZone).not($dropzone),
101101
isInsideDropzone = !!$dropzone.length;
102102

103-
if (!e.originalEvent.dataTransfer.items.length
104-
) {
103+
if (e.originalEvent.dataTransfer.items.length === 0) {
105104
return false;
106105
}
107106

0 commit comments

Comments
 (0)