angular / components

Component infrastructure and Material Design components for Angular
https://material.angular.io
MIT License
24.35k stars 6.74k forks source link

bug(Expansion Panel): Input element in ExpansionPanel prevent page scrolling while focused #21727

Open dopsun opened 3 years ago

dopsun commented 3 years ago

Reproduction

This can be observed in official example page of https://material.angular.io/components/expansion/examples.

Steps to reproduce:

  1. Go to https://material.angular.io/components/expansion/examples
  2. Scroll down to "Expansion panel as accordion" section
  3. Focus on Input element (First Name), say key in any chars to confirm now this input element activated
  4. Hover mouse over the text just entered
  5. Using two fingers over touch pad to scroll up (My local OS is MacOS, but remote to an Windows OS, so two fingers scrolling. I guess this may also happen on Windows locally if mouse middle button is scrollable for the same function )

Expected Behavior

The page scroll up

Actual Behavior

What can be observed is that the text in the Input element is actually trying scrolling by itself within Input element, but not page.

Environment

Others

dopsun commented 3 years ago

To add:

dopsun commented 3 years ago

>>>... I guess this may also happen on Windows locally if mouse middle button is scrollable for the same function

Tested on a Windows PC with mouse, the issue also happens while hovering and try to scroll by mouse middle wheel.