Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ember-ignore-children-helper

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-ignore-children-helper

Helps you ignore events that didn't directly target your own element.

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

ignore-children

No actual children were neglected in the making of this addon.

This Ember addon provides a single helper named ignore-children. It lets you declare an event handler that will only fire for events that directly target the given element. Events from its children will be ignored.

For example, assume that your-component accepts an action named doSomething:

{{your-component doSomething=(action "alrightyThen")}}

Then within your-component.hbs, you can say:

<div class="outer" onclick={{action (ignore-children doSomething) }}>
  Clicks in this area will cause "doSomething" to be called.
  <div class="inner">But clicks in this area will not! ignore-children is blocking them for us.</div>
</div>

See tests/dummy/app/index.hbs for a working example you can play with.

Installation

ember install ember-ignore-children-helper

Running, Testing, etc

Standard ember addon conventions apply. In this repo, ember s will run the included dummy app and ember test will run the test suite.

Keywords

FAQs

Package last updated on 17 Oct 2017

Did you know?

Socket

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.

Install

Related posts

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