
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
ember-click-outside-modifier
Advanced tools
Ember modifier to catch events outside marked DOM element
Ember modifier to react on clicks outside an element without stopping the event propagation. Great for closing dialogues, menus among other things.
If you need more control on click outside - take a look at ember-click-outside
Inspired by v-click-outside
ember install ember-click-outside-modifier
<div {{click-outside this.onClickOutside}}></div>
You can also provide specific events that you want to bind to with the event
or events
named arguments.
<div {{click-outside this.onClickOutside event='mouseup'}}></div>
<div {{click-outside this.onClickOutside events=(array 'click' 'mouseup')}}></div>
ember-click-outside-modifier
is a glint enabled addon. Add this to your
types/global.d.ts
file:
import '@glint/environment-ember-loose';
import type EmberClickOutsideRegistry from 'ember-click-outside-modifier/template-registry';
declare module '@glint/environment-ember-loose/registry' {
export default interface Registry extends EmberClickOutsideRegistry, /* other addon registries */ {
// local entries
}
}
For the entire guide, please refer to Using Addons section on the glint handbook.
Types are made available through package.json exports
field.
<template>
tagFor usage in gts
or gjs
files, modifier are exported from the index:
import { clickOutside } from 'ember-click-outside-modifier';
<template>
<div {{clickOutside this.handleClickOutside}}>
Lorem ipsum.
</div>
</template>
See the Contributing guide for details.
This project is licensed under the MIT License.
v4.1.2 (2025-05-12)
FAQs
Ember modifier to catch events outside marked DOM element
The npm package ember-click-outside-modifier receives a total of 1,213 weekly downloads. As such, ember-click-outside-modifier popularity was classified as popular.
We found that ember-click-outside-modifier demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.