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

@yamada-ui/use-focus

Package Overview
Dependencies
Maintainers
1
Versions
562
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yamada-ui/use-focus - npm Package Compare versions

Comparing version 0.1.6 to 0.2.0

7

dist/index.js

@@ -0,1 +1,2 @@

"use client"
"use strict";

@@ -105,6 +106,6 @@ var __defProp = Object.defineProperty;

};
(0, import_use_event_listener.useEventListener)(doc, "pointerdown", (event) => {
(0, import_use_event_listener.useEventListener)(doc, "pointerdown", (ev) => {
if (!(0, import_utils.isSafari)() || !enabled)
return;
const target = event.target;
const target = ev.target;
const els = elements != null ? elements : [ref];

@@ -116,3 +117,3 @@ const isValidTarget = els.some((elementOrRef) => {

if (doc().activeElement !== target && isValidTarget) {
event.preventDefault();
ev.preventDefault();
target.focus();

@@ -119,0 +120,0 @@ }

{
"name": "@yamada-ui/use-focus",
"version": "0.1.6",
"version": "0.2.0",
"description": "Yamada UI useFocus custom hook",

@@ -28,3 +28,3 @@ "keywords": [

"@yamada-ui/utils": "0.2.0",
"@yamada-ui/use-event-listener": "0.1.6"
"@yamada-ui/use-event-listener": "0.2.0"
},

@@ -45,3 +45,6 @@ "devDependencies": {

"esm"
]
],
"banner": {
"js": "\"use client\""
}
},

@@ -48,0 +51,0 @@ "module": "dist/index.mjs",

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