Skip to content
This repository was archived by the owner on May 20, 2023. It is now read-only.

Commit 910bcc6

Browse files
TedSandernshahan
authored andcommitted
Scope the Focusable item for AutoFocusDirective so that any node in the hierarchy isn't mistakenly focused.
PiperOrigin-RevId: 204985250
1 parent df97447 commit 910bcc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/focus/focus.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ class AutoFocusDirective extends RootFocusable implements OnInit, OnDestroy {
137137
AutoFocusDirective(
138138
HtmlElement node,
139139
this._domService,
140-
@Optional() this._focusable,
140+
@Self() @Optional() this._focusable,
141141
@Optional() this._modal,
142142
@Optional() this._popupRef)
143143
: super(node);

0 commit comments

Comments
 (0)