You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There was a misconception during implementation process. According to latest ng2 it should prevent default event, only if user returns explicitly false not just falsy value
If the decorated method returns false, then preventDefault is applied on the DOM event.
Hotell
changed the title
@HostBinding prevents default when falsy value is returned
@HostListener prevents default when falsy value is returned
Jun 24, 2016
There was a misconception during implementation process. According to latest ng2 it should prevent default event, only if user returns explicitly
false
not just falsy valuehttps://angular.io/docs/ts/latest/api/core/index/HostListener-var.html
The text was updated successfully, but these errors were encountered: