dile-close-document-click-mixin
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"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. |
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
4652