solid-dismiss
Advanced tools
Comparing version 1.0.12 to 1.0.13
@@ -380,2 +380,3 @@ import { insert, template, delegateEvents, addEventListener, effect, setAttribute, classList, createComponent, mergeProps } from 'solid-js/web'; | ||
const onBlurWindow = item => { | ||
if (item.overlay || item.overlayEl) return; | ||
if (!item.closeWhenDocumentBlurs) return; | ||
@@ -382,0 +383,0 @@ item.menuBtnEl.focus(); |
@@ -49,2 +49,4 @@ import { dismissStack } from "./dismissStack"; | ||
const onBlurWindow = (item) => { | ||
if (item.overlay || item.overlayEl) | ||
return; | ||
if (!item.closeWhenDocumentBlurs) | ||
@@ -51,0 +53,0 @@ return; |
@@ -112,3 +112,8 @@ import "./browserInfo"; | ||
* | ||
* Closes when the document "blurs". This would happen when interacting outside of the page such as Devtools, changing browser tabs, or switch different applications. | ||
* If `true`, closes menuPopup when the document "blurs". This would happen when interacting outside of the page such as Devtools, changing browser tabs, or switch different applications. Also if the page with the menuPopup, is inside an iframe, interacting outside the iframe, will close it. | ||
* | ||
* @remarks This doesn't effect overlays, if `Dimsiss.overlay` or `Dismiss.overlayElement` are set. | ||
* | ||
* @defaultValue `false` | ||
* | ||
*/ | ||
@@ -115,0 +120,0 @@ closeWhenDocumentBlurs?: boolean; |
{ | ||
"name": "solid-dismiss", | ||
"version": "1.0.12", | ||
"version": "1.0.13", | ||
"homepage": "https://aquaductape.github.io/solid-dismiss/", | ||
@@ -5,0 +5,0 @@ "description": "Handles \"click outside\" behavior for popup menu. Closing is triggered by click/focus outside of popup element or pressing \"Escape\" key.", |
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
261096
35
3572