We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b12a7c6 commit 7839b8fCopy full SHA for 7839b8f
src/lib/core/a11y/focus-trap.ts
@@ -16,9 +16,9 @@ import {coerceBooleanProperty} from '../coersion/boolean-property';
16
selector: 'focus-trap',
17
// TODO(jelbourn): move this to a separate file.
18
template: `
19
- <div *ngIf="active" tabindex="0" (focus)="focusLastTabbableElement()"></div>
+ <div *ngIf="!disabled" tabindex="0" (focus)="focusLastTabbableElement()"></div>
20
<div #trappedContent><ng-content></ng-content></div>
21
- <div *ngIf="active" tabindex="0" (focus)="focusFirstTabbableElement()"></div>`,
+ <div *ngIf="!disabled" tabindex="0" (focus)="focusFirstTabbableElement()"></div>`,
22
encapsulation: ViewEncapsulation.None,
23
})
24
export class FocusTrap {
0 commit comments