Skip to content

Commit 4f658e0

Browse files
authored
fix(module:tabs): prevent incorrect scroll offset on tab focus (#9186)
1 parent 12d8786 commit 4f658e0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

components/tabs/tab-nav-item.directive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export class NzTabNavItemDirective implements FocusableOption {
2424
}
2525

2626
focus(): void {
27-
this.el.focus();
27+
this.el.focus({ preventScroll: true });
2828
}
2929

3030
get width(): number {

0 commit comments

Comments
 (0)