Skip to content

Commit

Permalink
fix(core/directives/host): execute HostListener method within sync $a…
Browse files Browse the repository at this point in the history
…pply instead of next tick

- this properly allows to handle user events on input elements like in angular 2

Closes #171
  • Loading branch information
Hotell committed Nov 20, 2016
1 parent 81217cf commit 96bf124
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/directives/host/host_resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export function _setHostListeners(

const cbParams: any[] = _getHostListenerCbParams( evt, methodParams );

scope.$applyAsync( ()=> {
scope.$apply( ()=> {

const noPreventDefault = ctrl[ methodName ]( ...cbParams );

Expand Down

0 comments on commit 96bf124

Please sign in to comment.