Skip to content

Feature request: MatTabGroup#focusFirst or MatTab#focus method #15007

Closed
livepoll/live-poll
#189
@ampled

Description

@ampled

Please describe the feature you would like to request.

I would like to be able to programatically set focus on the first tab in an template-referenced exported Material Tab Group instance, much like the focus method on MatListOption#focus. or MatMenu#focusFirstItem

What is the use-case or motivation for this proposal?

It's very "nice to have", but it would make the available API consistent with other Material Components that has focus methods.
Any available focus method is helpful in avoiding document queries. Code feels cleaner without them.

Metadata

Metadata

Assignees

Labels

P5The team acknowledges the request but does not plan to address it, it remains open for discussionarea: material/tabsfeatureThis 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