Skip to content

feat(sidenav): allow for auto focusing to be disabled - #10933

Merged
andrewseguin merged 1 commit into
angular:masterfrom
crisbeto:10402/drawer-auto-focus
Apr 26, 2018
Merged

andrewseguin merged 1 commit into
angular:masterfrom
crisbeto:10402/drawer-auto-focus

Conversation

@crisbeto

Copy link
Copy Markdown
Member

Along the same lines as the dialog, these changes allow for the auto focusing, that is done by the sidenav, to be disabled.

Fixes #10402.

@crisbeto
crisbeto requested a review from mmalerba as a code owner April 20, 2018 12:44
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Apr 20, 2018
Comment thread src/lib/sidenav/drawer.ts Outdated
this._elementRef.nativeElement.focus();
}
});
if (this.autoFocus) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does _restoreFocus need new logic as well?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, good point. I had forgotten that it has some extra functionality on top of just restoring focus. It's changed.

Along the same lines as the dialog, these changes allow for the auto focusing, that is done by the sidenav, to be disabled.

Fixes angular#10402.
@crisbeto
crisbeto force-pushed the 10402/drawer-auto-focus branch from f527da7 to ad42f45 Compare April 20, 2018 17:06
@mmalerba mmalerba added pr: lgtm action: merge The PR is ready for merge by the caretaker and removed pr: needs review labels Apr 20, 2018
@crisbeto crisbeto added the target: minor This PR is targeted for the next minor release label Apr 20, 2018
@andrewseguin
andrewseguin merged commit 4ae63b3 into angular:master Apr 26, 2018
@angular-automatic-lock-bot

Copy link
Copy Markdown

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 Sep 8, 2019
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 target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow disabling autoFocus on sidenav/drawer

4 participants