Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
dile-close-document-click-mixin
Advanced tools
Mixin to close custom elements when user do click in any area of the document.
This package has moved and is now available at @dile/dile-close-document-click-mixin. Please update your dependencies. This repository is no longer maintained.
Mixin to close custom elements when user do click in any area of the document.
This mixin, that you may apply to any Custom Element, offers a way to close elements when the user clicks in any area of the document.
Install it:
npm i dile-close-document-click-mixin
To use it you olny need to extend your custom element class with the mixin.
import { DileCloseDocumentClickMixin } from 'dile-close-document-click-mixin/dile-close-document-click-mixin.js';
class MyElement extends DileCloseDocumentClickMixin(HTMLElement) {
// your custom element code...
}
To do it's work, the mixin depends on a close() method created in your custom element class.
The mixin also provides two utility methods:
FAQs
Mixin to close custom elements when user do click in any area of the document.
We found that dile-close-document-click-mixin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.