Skip to content

Commit

Permalink
s/active/!disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalerba committed Nov 15, 2016
1 parent b12a7c6 commit 7839b8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/core/a11y/focus-trap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ import {coerceBooleanProperty} from '../coersion/boolean-property';
selector: 'focus-trap',
// TODO(jelbourn): move this to a separate file.
template: `
<div *ngIf="active" tabindex="0" (focus)="focusLastTabbableElement()"></div>
<div *ngIf="!disabled" tabindex="0" (focus)="focusLastTabbableElement()"></div>
<div #trappedContent><ng-content></ng-content></div>
<div *ngIf="active" tabindex="0" (focus)="focusFirstTabbableElement()"></div>`,
<div *ngIf="!disabled" tabindex="0" (focus)="focusFirstTabbableElement()"></div>`,
encapsulation: ViewEncapsulation.None,
})
export class FocusTrap {
Expand Down

0 comments on commit 7839b8f

Please sign in to comment.