question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

component events should mask event propagation.

See original GitHub issue
@Component({
  selector: 'my-component'
  events: ['change']
})
@View({
  template: '<input (change)="...">'
})
class MyComponent {
} 

The above code creates an issue. It conflates the change event from the MyComponent with the bubbling change event from the <input>.

The correct behavior is that the change event which is part of the components should filter out the DOM change events. Otherwise

<my-component (change)="doSomething($event)">

will sometimes get the $event from the MyComponent and sometimes from the input event.

Issue Analytics

  • State:open
  • Created 8 years ago
  • Reactions:19
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

17reactions
Giwayumecommented, Feb 1, 2018

I have to say, Angular 2 is the most stressful Javascript framework I’ve had to deal with (due to its adoption at work). It is somehow paradoxically both over-engineered and not well thought out.

14reactions
mheverycommented, Feb 2, 2018

I have to say, Angular 2 is the most stressful Javascript framework I’ve had to deal with (due to its adoption at work). It is somehow paradoxically both over-engineered and not well thought out.

@Giwayume I understand that you are frustrated, and I also understand that things are not perfect, but such comments are not constructive and do not create value. Please stay on subject here.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Component Event Propagation - Salesforce Developers
Component Event Propagation ... The framework supports capture and bubble phases for the propagation of component events. These phases are similar to DOM...
Read more >
Events - Alpine.js
When reacting to browser events, it is often necessary to "prevent default" (prevent the default behavior of the browser event). ... You can...
Read more >
Window Attributes (XlibScm) - People
The do-not-propagate-mask attribute defines which events should not be propagated to ancestor windows when no client has the event type selected in this ......
Read more >
Face masks effectively limit the probability of SARS-CoV-2 ...
We show that variations in mask efficacy can be explained by different regimes of virus abundance and are related to population-average infection probability ......
Read more >
UI Events - W3C
This specification defines UI Events which extend the DOM Event ... But before dispatch can begin, the event object's propagation path must ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found