-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Material select component scrolls to focused option after selection #5381
Comments
Looking into it, why are you doing a |
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. |
…ged programmatically Doesn't shift focus when the value of a multi select is updated programmatically while the panel is still open. Previously focus would end up on the last selected option, because we move focus in a loop. Fixes angular#5381.
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 #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? |
…ged programmatically Doesn't shift focus when the value of a multi select is updated programmatically while the panel is still open. Previously focus would end up on the last selected option, because we move focus in a loop. Fixes #5381.
This issue still happens in angular-material version 5.2.4 |
We are still facing the issue with angular-material 6.4.7 |
|
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. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug, feature request, or proposal:
Bug
What is the expected behavior?
After I click on an option, the scrollbar of md-select is not affecting
What is the current behavior?
After I click on an option, the scrollbar of md-select scrolls to latest focused node
What are the steps to reproduce?
GIF:
What is the use-case or motivation for changing an existing behavior?
This decreases usability of the component.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular2, material2, all browsers
Is there anything else we should know?
The text was updated successfully, but these errors were encountered: