use-close-on-click-outside
Advanced tools
Comparing version 1.5.7 to 1.5.8
{ | ||
"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> |
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
16945