From 5271d27c180dced15a738d3a3aefd440bf448e7e Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Mon, 1 Aug 2022 17:57:44 +0200 Subject: [PATCH] @uppy/drop-target: remove `isFileTransfer` from the public API (#3932) --- packages/@uppy/drop-target/src/index.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/@uppy/drop-target/src/index.js b/packages/@uppy/drop-target/src/index.js index 18d45fe1b..1955d9216 100644 --- a/packages/@uppy/drop-target/src/index.js +++ b/packages/@uppy/drop-target/src/index.js @@ -51,10 +51,8 @@ export default class DropTarget extends BasePlugin { } } - isFileTransfer = isFileTransfer // TODO: expose this as a static instead (or don't expose it at all) in the next major. - handleDrop = async (event) => { - if (!this.isFileTransfer(event)) { + if (!isFileTransfer(event)) { return } @@ -97,7 +95,7 @@ export default class DropTarget extends BasePlugin { } handleDragOver = (event) => { - if (!this.isFileTransfer(event)) { + if (!isFileTransfer(event)) { return } @@ -116,7 +114,7 @@ export default class DropTarget extends BasePlugin { } handleDragLeave = (event) => { - if (!this.isFileTransfer(event)) { + if (!isFileTransfer(event)) { return }