rsnext/packages
Wouter Raateland b49717f8db
Allow scroll prevention on hash change (#31921)
* Allow scroll prevention on hash change

Currently, `scrollToHash` is performed on every hash change, even when this change is caused by `<Link scroll={false} {...props} />`.
This change prevents scrolling in this case and allows users to specify the desired scrolling behavior in the router's `hashChangeComplete` event.

* Add test case and apply fixes

Co-authored-by: JJ Kasper <jj@jjsweb.site>
2022-02-06 18:38:55 -06:00
..
create-next-app fix(cna): add default version (#33006) 2022-02-06 15:03:35 -06:00
eslint-config-next v12.0.11-canary.6 2022-02-04 17:02:00 -06:00
eslint-plugin-next v12.0.11-canary.6 2022-02-04 17:02:00 -06:00
next Allow scroll prevention on hash change (#31921) 2022-02-06 18:38:55 -06:00
next-bundle-analyzer v12.0.11-canary.6 2022-02-04 17:02:00 -06:00
next-codemod v12.0.11-canary.6 2022-02-04 17:02:00 -06:00
next-env v12.0.11-canary.6 2022-02-04 17:02:00 -06:00
next-mdx v12.0.11-canary.6 2022-02-04 17:02:00 -06:00
next-plugin-storybook v12.0.11-canary.6 2022-02-04 17:02:00 -06:00
next-polyfill-module v12.0.11-canary.6 2022-02-04 17:02:00 -06:00
next-polyfill-nomodule v12.0.11-canary.6 2022-02-04 17:02:00 -06:00
next-swc v12.0.11-canary.6 2022-02-04 17:02:00 -06:00
react-dev-overlay v12.0.11-canary.6 2022-02-04 17:02:00 -06:00
react-refresh-utils v12.0.11-canary.6 2022-02-04 17:02:00 -06:00