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

solid-dismiss

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

solid-dismiss - npm Package Compare versions

Comparing version 1.0.12 to 1.0.13

LICENSE

1

dist/esm/index.js

@@ -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;

2

package.json
{
"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

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