From deda78b3005833df3c6ee03e9559a272206f41f5 Mon Sep 17 00:00:00 2001 From: Joey Perrott Date: Tue, 23 Jan 2018 09:23:43 -0800 Subject: [PATCH] fix(focus-monitor): set up global listeners in root zone --- src/cdk/a11y/focus-monitor.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/cdk/a11y/focus-monitor.ts b/src/cdk/a11y/focus-monitor.ts index dbd858e1cd79..9a6cd14535d2 100644 --- a/src/cdk/a11y/focus-monitor.ts +++ b/src/cdk/a11y/focus-monitor.ts @@ -5,7 +5,6 @@ * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ - import {Platform, supportsPassiveEventListeners} from '@angular/cdk/platform'; import { Directive, @@ -202,7 +201,7 @@ export class FocusMonitor implements OnDestroy { // Note: we listen to events in the capture phase so we can detect them even if the user stops // propagation. - this._ngZone.runOutsideAngular(() => { + Zone.root.run(() => { document.addEventListener('keydown', documentKeydownListener, true); document.addEventListener('mousedown', documentMousedownListener, true); document.addEventListener('touchstart', documentTouchstartListener,