Skip to content

Commit 49c3675

Browse files
mmalerbatinayuangao
authored andcommitted
add exportAs to focusTrap directive (#3688)
1 parent aa5925b commit 49c3675

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,8 @@ export class FocusTrapDeprecatedDirective implements OnDestroy, AfterContentInit
222222

223223
/** Directive for trapping focus within a region. */
224224
@Directive({
225-
selector: '[cdkTrapFocus]'
225+
selector: '[cdkTrapFocus]',
226+
exportAs: 'cdkTrapFocus',
226227
})
227228
export class FocusTrapDirective implements OnDestroy, AfterContentInit {
228229
focusTrap: FocusTrap;

0 commit comments

Comments
 (0)