Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mat-select is scrolling up when selecting #18154

Closed
MadyAkira opened this issue Jan 11, 2020 · 1 comment
Closed

mat-select is scrolling up when selecting #18154

MadyAkira opened this issue Jan 11, 2020 · 1 comment

Comments

@MadyAkira
Copy link

@MadyAkira MadyAkira commented Jan 11, 2020

Reproduction

ezgif-3-99fed5f7556f
StackBlitz issue

Steps to reproduce:

  1. Change the height of mat-option to unset;
  2. Scroll down and select a value

Expected Behavior

The mat-select component shouldn't be scrolling up when selecting a value.

Actual Behavior

The component scroll up when selecting a value.

Environment

  • Angular : 8.1.3
  • CDK/Material: Angular Material design
  • Browser(s): Chrome
  • Operating System (e.g. Windows, macOS, Ubuntu): MacOS Mojave 10.14
@crisbeto

This comment has been minimized.

Copy link
Member

@crisbeto crisbeto commented Jan 11, 2020

The select expects options to be of a certain height and we currently don't support overriding it so you're doing it at your own risk.

@crisbeto crisbeto closed this Jan 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.