fix(router): default scroll position restoration to disabled (#25586)
Fixes #25145 FW-305 #resolve PR Close #25586
This commit is contained in:
@ -29,7 +29,11 @@ export class RouterScroller implements OnDestroy {
|
||||
/** @docsNotRequired */ public readonly viewportScroller: ViewportScroller, private options: {
|
||||
scrollPositionRestoration?: 'disabled' | 'enabled' | 'top',
|
||||
anchorScrolling?: 'disabled'|'enabled'
|
||||
} = {}) {}
|
||||
} = {}) {
|
||||
// Default both options to 'disabled'
|
||||
options.scrollPositionRestoration = options.scrollPositionRestoration || 'disabled';
|
||||
options.anchorScrolling = options.anchorScrolling || 'disabled';
|
||||
}
|
||||
|
||||
init(): void {
|
||||
// we want to disable the automatic scrolling because having two places
|
||||
|
Reference in New Issue
Block a user