angular-cn/packages/common/src
Andrew Scott 4eac7e6436 fix(router): Router should focus element after scrolling (#40241)
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
2021-01-05 09:48:48 -08:00
..
directives perf(common): use `ngDevMode` to tree-shake warnings (#39964) 2020-12-04 16:08:00 -08:00
i18n fix(common): change the week-numbering year format from `r` -> `Y` (#39495) 2020-10-30 10:24:43 -07:00
location docs(router): clarify how base href is used to construct targets (#38123) 2020-07-29 13:34:02 -07:00
pipes docs(common): use table layout for Pre-defined format options (#40036) 2020-12-09 09:11:03 -08:00
common.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
common_module.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
cookie.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
dom_adapter.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
dom_tokens.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
platform_id.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
private_export.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
version.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
viewport_scroller.ts fix(router): Router should focus element after scrolling (#40241) 2021-01-05 09:48:48 -08:00