Skip to content

Commit 7839b8f

Browse files
committed
s/active/!disabled
1 parent b12a7c6 commit 7839b8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/core/a11y/focus-trap.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ import {coerceBooleanProperty} from '../coersion/boolean-property';
1616
selector: 'focus-trap',
1717
// TODO(jelbourn): move this to a separate file.
1818
template: `
19-
<div *ngIf="active" tabindex="0" (focus)="focusLastTabbableElement()"></div>
19+
<div *ngIf="!disabled" tabindex="0" (focus)="focusLastTabbableElement()"></div>
2020
<div #trappedContent><ng-content></ng-content></div>
21-
<div *ngIf="active" tabindex="0" (focus)="focusFirstTabbableElement()"></div>`,
21+
<div *ngIf="!disabled" tabindex="0" (focus)="focusFirstTabbableElement()"></div>`,
2222
encapsulation: ViewEncapsulation.None,
2323
})
2424
export class FocusTrap {

0 commit comments

Comments
 (0)