Skip to content

Commit 6d57db8

Browse files
committed
fix(docs-infra): keep focus in the API reference filter
The API reference filter writes its value to the URL on each change. With the Navigation API integration, each of these navigations ends with the browser moving focus to the body, so typing `signal` in the filter leaves `s` and the other keys go to the page. Pass `focusReset: 'manual'` next to `scroll: 'manual'`, so focus stays in the filter field.
1 parent 8260542 commit 6d57db8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎adev/src/app/features/references/api-reference-list/api-reference-list.component.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,8 @@ export default class ApiReferenceList {
164164
replaceUrl: true,
165165
preserveFragment: true,
166166
scroll: 'manual',
167+
// Keeps focus in the filter field with the Navigation API integration.
168+
focusReset: 'manual',
167169
});
168170
});
169171
}

0 commit comments

Comments
 (0)