mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-28 20:40:06 +00:00
@uppy/drop-target: remove isFileTransfer from the public API (#3932)
This commit is contained in:
parent
0e555880e7
commit
5271d27c18
1 changed files with 3 additions and 5 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue