You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 5d0a5dc
Browse filesBrowse the repository at this point in the historyBrowse files
feat(router): add focusReset to NavigationBehaviorOptions
With the platform navigation integration, the router passes `scroll` to
`NavigateEvent#intercept()` but not `focusReset`, so the browser moves
focus to the body after every navigation. A search field that writes its
value to a query param loses focus after the first key.
Add a `focusReset` option next to `scroll` and pass it to `intercept()`,
so a navigation can leave focus where it is. Without the option, the
browser default still applies.
Fixesangular#71594
0 commit comments