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

react-cool-onclickoutside

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-cool-onclickoutside - npm Package Compare versions

Comparing version 1.4.4 to 1.4.5

4

package.json
{
"name": "react-cool-onclickoutside",
"version": "1.4.4",
"version": "1.4.5",
"description": "React hook to listen for clicks outside of the component(s).",

@@ -242,3 +242,3 @@ "license": "MIT",

"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-postcss": "^2.5.0",
"rollup-plugin-postcss": "^3.1.0",
"rollup-plugin-serve": "^1.0.1",

@@ -245,0 +245,0 @@ "rollup-plugin-size-snapshot": "^0.11.0",

@@ -22,9 +22,9 @@ # React Cool Onclickoutside

- 🎣 Listen for clicks outside based on React [hook](https://reactjs.org/docs/hooks-custom.html#using-a-custom-hook).
- 👯‍♀️ Support multiple [refs](https://reactjs.org/docs/refs-and-the-dom.html) to cover more use cases.
- 🎣 Listens for clicks outside based on React [hook](https://reactjs.org/docs/hooks-custom.html#using-a-custom-hook).
- 👯‍♀️ Supports multiple [refs](https://reactjs.org/docs/refs-and-the-dom.html) to cover more use cases.
- 🧻 Uses [passive event listeners](https://developers.google.com/web/tools/lighthouse/audits/passive-event-listeners) to improve scrolling performance.
- ⛔ Scrollbar can be excluded from the callback of outside clicks.
- 🙈 [Ignore certain elements](#ignore-elements-by-css-class-name) during the event loop.
- 🙉 Enable you to [stop listening for outside clicks](#disabling-the-event-listener) when needed.
- 📜 Support [TypeScript](https://www.typescriptlang.org) type definition.
- 🙈 [Ignores certain elements](#ignore-elements-by-css-class-name) during the event loop.
- 🙉 Enables you to [stop listening for outside clicks](#disabling-the-event-listener) when needed.
- 📜 Supports [TypeScript](https://www.typescriptlang.org) type definition.
- 🗄️ Server-side rendering compatibility.

@@ -31,0 +31,0 @@ - 🦠 Tiny size ([< 1KB gzipped](https://bundlephobia.com/result?p=react-cool-onclickoutside)). No external dependencies, aside for the `react`.

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