File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 1+ < div tabindex ="0 " (focus) ="focusLastTabbableElement() "> </ div >
2+ < div #trappedContent > < ng-content > </ ng-content > </ div >
3+ < div tabindex ="0 " (focus) ="focusFirstTabbableElement() "> </ div >
Original file line number Diff line number Diff line change @@ -13,11 +13,7 @@ import {InteractivityChecker} from './interactivity-checker';
1313@Component ( {
1414 moduleId : module . id ,
1515 selector : 'focus-trap' ,
16- // TODO(jelbourn): move this to a separate file.
17- template : `
18- <div tabindex="0" (focus)="focusLastTabbableElement()"></div>
19- <div #trappedContent><ng-content></ng-content></div>
20- <div tabindex="0" (focus)="focusFirstTabbableElement()"></div>` ,
16+ templateUrl : 'focus-trap.html' ,
2117 encapsulation : ViewEncapsulation . None ,
2218} )
2319export class FocusTrap {
You can’t perform that action at this time.
0 commit comments