Gathering detailed insights and metrics for ember-click-outside
Gathering detailed insights and metrics for ember-click-outside
Gathering detailed insights and metrics for ember-click-outside
Gathering detailed insights and metrics for ember-click-outside
ember-click-outside-modifier
Ember modifier to catch events outside marked DOM element
@chakra-ui/react-use-outside-click
A Quick description of the component
v-click-outside
Vue directive to react on clicks outside an element
@types/react-outside-click-handler
TypeScript definitions for react-outside-click-handler
npm install ember-click-outside
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
93 Stars
268 Commits
32 Forks
3 Watching
24 Branches
21 Contributors
Updated on 05 Oct 2024
JavaScript (88.75%)
HTML (7.96%)
Handlebars (1.77%)
CSS (1.52%)
Cumulative downloads
Total Downloads
Last day
2.7%
3,483
Compared to previous day
Last week
-3.2%
16,515
Compared to previous week
Last month
10.1%
75,888
Compared to previous month
Last year
92.4%
1,759,836
Compared to previous year
2
17
A handy modifier for detecting click events fired outside an element.
If you're running ember-source <3.22, you need to install ember-destroyable-polyfill to get the modifier working.
If you're running ember-source <3.8, you need to install ember-modifier-manager-polyfill to get the modifier working.
From within your ember-cli project directory install the addon:
1ember install ember-click-outside
1<div {{on-click-outside this.someAction}}> 2 Your HTML... 3</div>
If you wish to exclude certain elements from counting as outside clicks, use
the exceptSelector
attribute:
1<div {{on-click-outside this.someAction exceptSelector=".some-selector"}}> 2 Your HTML... 3</div>
You can listen for events other than click
by using the eventType
attribute:
1<div {{on-click-outside this.someAction eventType="mousedown"}}> 2 Your HTML... 3</div>
For every click in the document, ember-click-outside
will check if the click target is outside of its element, and trigger the provided action/callback if so.
If the click target cannot be found in the document (probably because it has been removed before ember-click-outside
detected the click), no action/callback is triggered, since we cannot check if it is inside or outside of the element.
See the Contributing guide for details.
This project is licensed under the MIT License.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
12 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 2/19 approved changesets -- score normalized to 1
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
42 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More