Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@uploadthing/dropzone

Package Overview
Dependencies
Maintainers
1
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uploadthing/dropzone - npm Package Compare versions

Comparing version 0.2.2-canary.2a1b576 to 0.2.2-canary.472fea7

4

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc