Skip to content

Commit 26a67b8

Browse files
Fixing focus restoration for added children (#98)
1 parent dc0e10f commit 26a67b8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/SpatialNavigation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1227,7 +1227,7 @@ class SpatialNavigationService {
12271227
* If for some reason this component was already focused before it was added, call the update
12281228
*/
12291229
if (focusKey === this.focusKey) {
1230-
this.setFocus(focusKey);
1230+
this.setFocus(preferredChildFocusKey || focusKey);
12311231
}
12321232

12331233
/**

0 commit comments

Comments
 (0)