-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Description
Is this a regression?
- Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
No response
Description
This behavior is seen when a form field is in a vertically scrollable mat-card. When scrolled to certain positions, there's extra lines shown at the top and bottom of the form field. The length of the lines matches the length of the label, and it seems like it could be related to the "will-change: auto;" property being set since it disappears when that's deselected in devtools. This behavior is seen when scrolling with the mouse but is more reproducible when dragging the scroll bar.


Reproduction
Recording:
20250711-1848-33.5447366.mp4
Steps to reproduce:
- Ensure no form fields are selected
- Click & slowly drag the vertical scroll on the mat-card
Note: This is observed most frequently on Microsoft Edge.
Expected Behavior
I expect the form fields to not change their appearance while scrolling
Actual Behavior
The form fields are showing a line the length of the label at the top and bottom of the outlined form field.
Environment
- Angular: 19.x
- CDK/Material: 19.2.19
- Browser(s):
- Microsoft Edge: Version 137.0.3296.93 (Official build) (64-bit)
- Chrome version: 137.0.7151.120 (Official Build) (64-bit)
- Firefox version: 140.0 (64-bit)
- Operating System (e.g. Windows, macOS, Ubuntu): Windows