Skip to content

Focus is lost when opening md-select options list #6690

Closed
@rubenlagus

Description

@rubenlagus

Bug, feature request, or proposal:

When an user opens the md-select options list, focus is lost from the component itself.

What is the expected behavior?

Focus should remain in a child of md-select options and events such as focusin or focusout should not be triggered since the user has not really leave the component at tall.

What is the current behavior?

As soon as the options list opens, focus is lost form the component containing the md-select.

What are the steps to reproduce?

Check focus log when selecting options: http://plnkr.co/uySEJGxzMTkbO6DxlT1F

What is the use-case or motivation for changing an existing behavior?

In order to be able to track focus events and being able to apply custom styles to a component when it is focused, it is necessary that those events allow to track when the user really leave the component and they don't trigger while the user is selecting an option inside a form (for example).

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Tested with Angular 4.3.1, Material 2.0.0-beta.8 under Chrome.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions