I found a strange behaviour with Angular2:
(click)
isn't firing on this:
<div (click)="test()">test</div>
But it works here:
<div style="position: relative;" (click)="test()">test</div>
Can anyone explain this behaviour? Why there is a need to set position style in order for (click) to fire?
Am I missing anything?
question from:https://stackoverflow.com/questions/41537122/why-angular2-click-event-is-not-firing-on-a-div