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:
- Created 8 years ago
- Reactions:19
- Comments:10 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.