Skip to content

Commit 930b71f

Browse files
committed
dnd.js: Fix incorrect method check.
ref: 67424a8 Fixes: #10367
1 parent a2bea82 commit 930b71f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

js/ui/dnd.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ var _Draggable = new Lang.Class({
206206
} else if (this._dragActor != null && !this._animationInProgress) {
207207
// Drag must have been cancelled with Esc.
208208
// Check if escaped drag was from a desklet
209-
if (this.target?._delegate.acceptDrop){
209+
if (this.target?._delegate.cancelDrag){
210210
this.target._delegate.cancelDrag(this.actor._delegate, this._dragActor);
211211
}
212212
this._dragComplete();

0 commit comments

Comments
 (0)