@uploadthing/dropzone
Advanced tools
Comparing version 0.2.2-canary.2a1b576 to 0.2.2-canary.472fea7
{ | ||
"name": "@uploadthing/dropzone", | ||
"version": "0.2.2-canary.2a1b576", | ||
"version": "0.2.2-canary.472fea7", | ||
"type": "module", | ||
@@ -62,3 +62,3 @@ "license": "MIT", | ||
"@uploadthing/tsconfig": "0.1.0", | ||
"bunchee": "^5.0.0", | ||
"bunchee": "^5.1.2", | ||
"eslint": "^8.57.0", | ||
@@ -65,0 +65,0 @@ "react": "18.2.0", |
@@ -41,6 +41,4 @@ import { fromEvent } from 'file-selector'; | ||
const root = rootRef(); | ||
if (root && root.contains(event.target)) { | ||
// If we intercepted an event for our instance, let it propagate down to the instance's onDrop handler | ||
return; | ||
} | ||
// If we intercepted an event for our instance, let it propagate down to the instance's onDrop handler | ||
if (root?.contains(event.target)) return; | ||
event.preventDefault(); | ||
@@ -166,7 +164,5 @@ dragTargets = []; | ||
const onKeyDown = (event)=>{ | ||
const root = rootRef(); | ||
// Ignore keyboard events bubbling up the DOM tree | ||
const root = rootRef(); | ||
if (!root || !root.isEqualNode(event.target)) { | ||
return; | ||
} | ||
if (!root?.isEqualNode(event.target)) return; | ||
if (isEnterOrSpace(event)) { | ||
@@ -173,0 +169,0 @@ event.preventDefault(); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
59767
1457