react-useportal
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -103,6 +103,6 @@ "use strict"; | ||
document && document.addEventListener('keydown', handleKeydown); | ||
document && document.addEventListener('click', handleOutsideMouseClick); | ||
document && document.addEventListener('mousedown', handleOutsideMouseClick); | ||
return () => { | ||
document && document.removeEventListener('keydown', handleKeydown); | ||
document && document.removeEventListener('click', handleOutsideMouseClick); | ||
document && document.removeEventListener('mousedown', handleOutsideMouseClick); | ||
elToMountTo.removeChild(node); | ||
@@ -109,0 +109,0 @@ }; |
{ | ||
"name": "react-useportal", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"homepage": "https://codesandbox.io/s/w6jp7z4pkk", | ||
@@ -5,0 +5,0 @@ "main": "dist/usePortal.js", |
Sorry, the diff of this file is not supported yet
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
24587