Skip to content

Commit

Permalink
@uppy/drag-drop: fix undefined is not a function TypeError (#3397)
Browse files Browse the repository at this point in the history
* @uppy/drag-drop: fix typo in `handleDragOver`

Fixes: #3385

* @uppy/drag-drop: fix typo in `handleDragLeave`
  • Loading branch information
aduh95 committed Dec 29, 2021
1 parent f419057 commit bdd1eb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@uppy/drag-drop/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ module.exports = class DragDrop extends UIPlugin {
clearTimeout(this.removeDragOverClassTimeout)
this.setPluginState({ isDraggingOver: true })

this.opts?.onDragOver(event)
this.opts.onDragOver?.(event)
}

handleDragLeave (event) {
Expand All @@ -124,7 +124,7 @@ module.exports = class DragDrop extends UIPlugin {
this.setPluginState({ isDraggingOver: false })
}, 50)

this.opts?.onDragLeave(event)
this.opts.onDragLeave?.(event)
}

handleDrop = async (event) => {
Expand Down

0 comments on commit bdd1eb5

Please sign in to comment.