bug(CDK menu): Menu directive breaks scrollbar scrolling behavior #30130
Labels
area: cdk/menu
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Is this a regression?
The previous version in which this bug was not present was
No response
Description
When the
@angular/cdk/menu
directive is applied to a scrollable element, it causes scroll behavior abnormalities. Clicking in the empty space within the scrollable area causes the content to unexpectedly scroll to the top. Additionally, general mouse scrolling behavior becomes erratic and unpredictable.Reproduction
StackBlitz link: https://stackblitz.com/edit/gwxbpu?file=src%2Fexample%2Fcdk-menu-inline-example.css,src%2Fexample%2Fcdk-menu-inline-example.html
Steps to reproduce:
video:
https://github.com/user-attachments/assets/1604a8f4-06b6-4bbf-809d-de0ecb2bb2f6
Expected Behavior
Clicking in empty space of the scrollbar should behave like natively, i.e. actually scroll down
Actual Behavior
Clicking in empty space within the scrollable area causes the content to immediately scroll to the top
Environment
The text was updated successfully, but these errors were encountered: