-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Description
Bug, feature request, or proposal:
I think it could be considered a bug, but I would classify it as a feature request: adding a configuration option to control the _keyManager's behavior, or at least its skipPredicate:
https://github.com/angular/material2/blob/master/src/lib/list/selection-list.ts#L341
What is the expected behavior?
The list shouldn't steal focus whenever it wants.
What is the current behavior?
I modify the contents of the list based on an input the user is filling in. The list focuses its elements and it is impossible for the user to continue typing. Setting up the skipPredicate with childComponent._keyManager.skipPredicate(() => true) allowed me to hack out the desired behavior.
What are the steps to reproduce?
Providing a StackBlitz reproduction is the best way to share your issue.
StackBlitz starter: https://goo.gl/wwnhMV
What is the use-case or motivation for changing an existing behavior?
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Is there anything else we should know?
If relevant, I can handle coding it up :)