Skip to content

Expose focusOptions in the focus() APIs (e.g. in MatButton) #14182

@mazja

Description

@mazja

Bug, feature request, or proposal:

Feature request

What is the expected behavior?

Expose the focusOptions (https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus) provided by the underlying HTMLElement.focus API in focus() functions such as MatButton.focus() . This will allow the application to prevent scrolling when the element is focused.

What is the current behavior?

The focusOptions is not exposed.

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?

N/A

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

N/A

Is there anything else we should know?

N/A

Metadata

Metadata

Assignees

Labels

GThis is is related to a Google internal issueP2The issue is important to a large percentage of users, with a workaroundfeatureThis issue represents a new feature or feature request rather than a bug or bug fix

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions