New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-tiny-popover

Package Overview
Dependencies
Maintainers
0
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-tiny-popover - npm Package Compare versions

Comparing version 8.1.4 to 8.1.5

8

dist/Popover.js

@@ -145,6 +145,6 @@ "use strict";

var handleWindowResize = (0, react_1.useCallback)(function () {
if (childRef.current) {
if (childRef.current && isOpen) {
window.requestAnimationFrame(function () { return positionPopover(); });
}
}, [positionPopover]);
}, [positionPopover, isOpen]);
(0, react_1.useEffect)(function () {

@@ -154,7 +154,7 @@ var body = parentElement.ownerDocument.body;

body.addEventListener('contextmenu', handleOnClickOutside, clickOutsideCapture);
body.addEventListener('resize', handleWindowResize);
window.addEventListener('resize', handleWindowResize);
return function () {
body.removeEventListener('click', handleOnClickOutside, clickOutsideCapture);
body.removeEventListener('contextmenu', handleOnClickOutside, clickOutsideCapture);
body.removeEventListener('resize', handleWindowResize);
window.removeEventListener('resize', handleWindowResize);
};

@@ -161,0 +161,0 @@ }, [clickOutsideCapture, handleOnClickOutside, handleWindowResize, parentElement]);

{
"name": "react-tiny-popover",
"version": "8.1.4",
"version": "8.1.5",
"description": "A simple and highly customizable popover react higher order component with no other dependencies!",

@@ -24,2 +24,9 @@ "keywords": [

"main": "dist/Popover.js",
"module": "dist/Popover.js",
"exports": {
".": {
"import": "./dist/Popover.js",
"require": "./dist/Popover.js"
}
},
"types": "dist/index.d.ts",

@@ -26,0 +33,0 @@ "devDependencies": {

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