Bug
After I click on an option, the scrollbar of md-select is not affecting
After I click on an option, the scrollbar of md-select scrolls to latest focused node
GIF:

This decreases usability of the component.
Angular2, material2, all browsers
Looking into it, why are you doing a slice inside the change callback? What you're doing is forcing Angular to re-render the list of options, which will cause the select to re-focus the first option.
The way I was using the component is a bit different, and slice is the only way I could simulate our use case..
Basically, in our usage, we pass the values down from an object (lets call it of type foo), and we emit an event when ngModel on mat-select changes.
Once ngModel changes, we recompute array of foo objects. Long story short, we end up with a new instance of the same array.
Also, why is it focusing on the first option, after i click on another option?
@jelbourn as FYI
It's an accessibility feature. That being said, I don't think it should happen after the first open, because focus is already in the user's control. Will look into it better tomorrow.
Hello Kristiyan (@crisbeto),
Is there any update on this? Has this issue been resolved? We are facing this exact same issue in our component and are wondering if a solution is available to address this.
Thanks.
There's a pending PR that is waiting to be merged https://github.com/angular/material2/pull/5401.
Okay, thanks for the update. Is there an estimate on when this PR would be merged and this fix would be available for use by us?
I can't give any guarantees, but it's in the queue to be merged and should be available in the next release.
Okay, that sounds good. Can you kindly advise roughly when is the next release expected?
This issue still happens in angular-material version 5.2.4
We are still facing the issue with angular-material 6.4.7
We are still facing the issue with angular-material 6.4.7
+1
Is this issue fixed using 6.4.7
We're using 7.3.7 and facing the same issue.
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
_This action has been performed automatically by a bot._
Most helpful comment
We are still facing the issue with angular-material 6.4.7