Socket
Socket
Sign inDemoInstall

dile-close-document-click-mixin

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dile-close-document-click-mixin - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

package.json
{
"name": "dile-close-document-click-mixin",
"version": "1.0.1",
"version": "1.0.2",
"description": "Mixin to close custom elements when user do click in any area of the document.",

@@ -5,0 +5,0 @@ "main": "dile-close-document-click-mixin.js",

@@ -0,1 +1,6 @@

# Moved
**This package has moved** and is now available at [@dile/dile-close-document-click-mixin](https://github.com/Polydile/dile-components). Please update your dependencies. This repository is no longer maintained.
# DileCloseDocumentClickMixin

@@ -34,7 +39,1 @@

## Important Notes
Please take in consideration this important points:
- You need to implement a close() method in your component, with the logic to close your own interface.
- You need to **stop the propagation of the click events** (event.closePropagation()), when you do not want to close all of your elements. For example, when the element opens by a user click in the page.
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