Skip to content

Child directive does not inherit parent directive's click handler #18331

Closed
@g1shin

Description

@g1shin

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report  
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior

Child directive does not inherit parent directive's click handler.

Expected behavior

Child directive should inherit parent directive's click handler.

Minimal reproduction of the problem with instructions

http://plnkr.co/edit/6Q74FAmo9XkfIlYGaGt9?p=preview
Clicking on the base button logs 'click' on console, but clicking on the child button that extends the base button does not log 'click' on console.

What is the motivation / use case for changing the behavior?

Environment


Angular version: X.Y.Z


Browser:
- [x] Chrome (desktop) version XX
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX
 
For Tooling issues:
- Node version: XX  
- Platform:  

Others:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions