Socket
Socket
Sign inDemoInstall

use-close-on-click-outside

Package Overview
Dependencies
0
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.5.7 to 1.5.8

2

package.json
{
"name": "use-close-on-click-outside",
"version": "1.5.7",
"version": "1.5.8",
"description": "This versatile component helps you easily detect and handle clicks outside a specified element. By utilizing this hook, you can effortlessly implement functionality such as closing modals or dropdown menus when users interact with the external area.",

@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js",

@@ -36,3 +36,3 @@ use close on click outside

<>
<div ref={ref} className="modal">
<div ref={modalRef} className="modal">
<h2>This is a modal</h2>

@@ -66,3 +66,3 @@ <h4>Click outside this modal to close</h4>

<>
<div ref={ref} className="modal">
<div ref={moalRef} className="modal">
<h2>This is a modal</h2>

@@ -69,0 +69,0 @@ <h4>Click outside this modal to close</h4>

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc