fix(router): event.defaultPrevented is not reliable (IE11)
This commit is contained in:
2
modules/angular2/src/router/router_link.js
vendored
2
modules/angular2/src/router/router_link.js
vendored
@ -54,7 +54,7 @@ export class RouterLink {
|
||||
this._location = location;
|
||||
this._params = StringMapWrapper.create();
|
||||
DOM.on(this._domEl, 'click', (evt) => {
|
||||
evt.preventDefault();
|
||||
DOM.preventDefault(evt);
|
||||
this._router.navigate(this._navigationHref);
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user