Skip to content

Commit

Permalink
Fixing lastFocusedChildKey for newly added parents (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrian-wozniak authored Sep 11, 2023
1 parent aeee293 commit f43a2c9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/SpatialNavigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1190,6 +1190,7 @@ class SpatialNavigationService {
while (currentComponent) {
if (currentComponent.parentFocusKey === focusKey) {
this.updateParentsHasFocusedChild(this.focusKey, {});
this.updateParentsLastFocusedChild(this.focusKey);
break;
}
currentComponent =
Expand Down

0 comments on commit f43a2c9

Please sign in to comment.