Skip to content

Conversation

@jelbourn
Copy link
Member

@jelbourn jelbourn commented Oct 8, 2017

This also renames "FocusTrapDirective" to "CdkTrapFocus" and re-exports it under the old name.

@jelbourn jelbourn requested a review from crisbeto October 8, 2017 17:35
@jelbourn jelbourn requested a review from devversion as a code owner October 8, 2017 17:35
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Oct 8, 2017
@jelbourn jelbourn requested a review from mmalerba October 8, 2017 17:35
* initialization and return focus to the previous activeElement upon destruction.
*/
@Input('cdkTrapFocusAutoCapture')
get autoCapture(): boolean { return this._autoCapture; }
Copy link
Member

Choose a reason for hiding this comment

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

Since this won't react to value changes, maybe it should be a plain @Input without the coercion or it should take the value via an @Attribute?

Copy link
Member Author

Choose a reason for hiding this comment

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

I made it an input since people may want to build a higher-level component on top of it and forward from their own API for the equivalent behavior

Copy link
Member

Choose a reason for hiding this comment

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

Makes sense, although I do feel like we're starting to add the coercion to everything.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm going to push for Angular to add @BooleanInput (and @NumberInput) to help with this.

Copy link
Member

@crisbeto crisbeto left a comment

Choose a reason for hiding this comment

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

LGTM

* initialization and return focus to the previous activeElement upon destruction.
*/
@Input('cdkTrapFocusAutoCapture')
get autoCapture(): boolean { return this._autoCapture; }
Copy link
Member

Choose a reason for hiding this comment

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

Makes sense, although I do feel like we're starting to add the coercion to everything.

@crisbeto crisbeto added pr: lgtm action: merge The PR is ready for merge by the caretaker and removed pr: needs review labels Oct 8, 2017
@willshowell
Copy link
Contributor

Breaking changes message? Or is the plan to wait until the re-export is removed?

@jelbourn
Copy link
Member Author

It should be a deprecation notice in the next release

This also renames "FocusTrapDirective" to "CdkTrapFocus" and re-exports it under the old name.
@jelbourn jelbourn force-pushed the focos-trap-auto-capture branch from d38ea13 to 8a781b5 Compare October 27, 2017 22:41
@josephperrott josephperrott merged commit 20b47d7 into angular:master Nov 7, 2017
@jelbourn jelbourn deleted the focos-trap-auto-capture branch April 2, 2018 22:30
@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 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants