From 2ce3c4d1d3dbdbd0fd9525ddffefba27dccd6e4f Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Mon, 1 Aug 2022 15:23:09 +0200 Subject: [PATCH] @uppy/drop-target: remove `isFileTransfer` from the public API --- 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 18d45fe1b5..1955d9216e 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 }