From 84a0aa4e70c63227cb546aab908ba8984650dc5f Mon Sep 17 00:00:00 2001 From: mertsincan Date: Wed, 28 Aug 2019 14:44:01 +0300 Subject: [PATCH] Fixed #8075 - The FocusTrap directive throws a JS exception on browsers --- src/app/components/focustrap/focustrap.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/focustrap/focustrap.ts b/src/app/components/focustrap/focustrap.ts index 600e84b51e4..70145416151 100644 --- a/src/app/components/focustrap/focustrap.ts +++ b/src/app/components/focustrap/focustrap.ts @@ -12,7 +12,7 @@ export class FocusTrap { @HostListener('keydown', ['$event']) onkeydown(e) { if(e.which === 9) { - event.preventDefault(); + e.preventDefault(); let focusableElements = DomHandler.getFocusableElements(this.el.nativeElement);