components icon indicating copy to clipboard operation
components copied to clipboard

bug(tabs): Automatically page scrolls to top when switching between some tabs

Open PhilFlash opened this issue 3 years ago • 1 comments
trafficstars

Is this a regression?

  • [X] Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

12.x

Description

Bug #9592 was fixed in Angular 12.x (with #22265). But this bug reappears in version 14.2.0

Reproduction

Steps to reproduce:

  • scroll page a little
  • click on tab header
  • notice page scrolled to the top

Bug 9592 fixed in Material 12.x (ok => no scroll) https://stackblitz.com/edit/components-issue-a7tfyp

Bug 9592 reappear in Material 14.2.0 (bug=> scroll to top) https://stackblitz.com/edit/components-issue-ahv6cb

Expected Behavior

No scroll to top when switching between some tabs

Actual Behavior

scroll to top when switching between some tabs

Environment

  • Angular: 14.2.0
  • CDK/Material: 14.2.0
  • Browser(s): Chrome/Firefox/Edge
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows

PhilFlash avatar Sep 03 '22 15:09 PhilFlash

This looks like a regression indeed and I am glad that someone else has noticed it!

realbizkit avatar Sep 22 '22 19:09 realbizkit