Skip to content
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

feat(material/tabs): add method for programmatically setting focus #15228

Merged
merged 1 commit into from
Mar 5, 2021

Conversation

crisbeto
Copy link
Member

Adds a method that allows for focus to be moved to a particular tab. This is usually tricky, because all of the DOM elements are hidden away inside the tab group template.

Fixes #15007.

@crisbeto crisbeto added the target: minor This PR is targeted for the next minor release label Feb 18, 2019
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Feb 18, 2019
@mmalerba mmalerba added aaa and removed aaa labels Apr 25, 2019
@crisbeto crisbeto force-pushed the 15007/tab-group-focus-method branch from 4962c1d to 7089f50 Compare May 26, 2019 13:13
@andrewseguin andrewseguin added the P5 The team acknowledges the request but does not plan to address it, it remains open for discussion label May 30, 2019
@crisbeto crisbeto force-pushed the 15007/tab-group-focus-method branch from 7089f50 to f20cdab Compare February 5, 2020 23:09
@crisbeto crisbeto force-pushed the 15007/tab-group-focus-method branch from f20cdab to 4a970db Compare February 21, 2020 20:30
@andrewseguin andrewseguin added lgtm action: merge The PR is ready for merge by the caretaker labels Jun 15, 2020
@mmalerba mmalerba removed the lgtm label Jul 31, 2020
@crisbeto crisbeto force-pushed the 15007/tab-group-focus-method branch from 4a970db to 9e280b6 Compare December 19, 2020 15:11
@crisbeto crisbeto changed the title feat(tabs): add method for programmatically setting focus feat(material/tabs): add method for programmatically setting focus Dec 19, 2020
@crisbeto crisbeto force-pushed the 15007/tab-group-focus-method branch from 9e280b6 to b450db7 Compare December 25, 2020 14:55

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Adds a method that allows for focus to be moved to a particular tab. This is usually
tricky, because all of the DOM elements are hidden away inside the tab group template.

Fixes angular#15007.
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Apr 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement P5 The team acknowledges the request but does not plan to address it, it remains open for discussion target: minor This PR is targeted for the next minor release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature request: MatTabGroup#focusFirst or MatTab#focus method
6 participants