mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
According to the [spec](https://html.spec.whatwg.org/#scroll-to-fragid), we should attempt to set the browser focus after scrolling to a fragment. Note that this change does not exactly follow the robust steps outlined in the spec by finding a fallback target if the original is not focusable. Instead, we simply attempt to focus the element by calling `focus` on it, which will do nothing if the element is not focusable. fixes #30067 PR Close #40241 |
||
|---|---|---|
| .. | ||
| directives | ||
| i18n | ||
| location | ||
| pipes | ||
| common.ts | ||
| common_module.ts | ||
| cookie.ts | ||
| dom_adapter.ts | ||
| dom_tokens.ts | ||
| platform_id.ts | ||
| private_export.ts | ||
| version.ts | ||
| viewport_scroller.ts | ||