Skip to content

Commit

Permalink
Fixed primefaces#8075 - The FocusTrap directive throws a JS exception…
Browse files Browse the repository at this point in the history
… on browsers
  • Loading branch information
mertsincan authored and JacobSiegle committed Oct 2, 2019
1 parent acad028 commit 84a0aa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/focustrap/focustrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 84a0aa4

Please sign in to comment.