Description
Bug, feature request, or proposal:
Once the .mat-option class height and line-height have been modified the keyboard scrolling looses focus of the active option
What is the expected behavior?
the autocomplete results should scroll with the keyboard active item selected
What is the current behavior?
if the size of the .mat-option is modified the autocomplete scrolling loses the active option selected by the keyboard arrow (up/down)
What are the steps to reproduce?
Providing a StackBlitz reproduction is the best way to share your issue.
StackBlitz starter: https://goo.gl/wwnhMV
apply the following css styling
.mat-autocomplete-panel {
max-height: 455px !important;
}
.mat-option {
height: 25px !important;
line-height: 25px !important;
}
What is the use-case or motivation for changing an existing behavior?
to behave as expected while scrolling with the keyboard
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
"@angular/core": "^5.0.0",
"@angular/material": "^5.2.1",
WINDOWS
Typescript 2.7.1
Chrome Version 63.0.3239.84 (Official Build) (64-bit)