Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Fix focus on Modal #4014

Merged
merged 2 commits into from
Jan 3, 2017
Merged

Fix focus on Modal #4014

merged 2 commits into from
Jan 3, 2017

Conversation

ngotchac
Copy link
Contributor

@ngotchac ngotchac commented Jan 3, 2017

Closes #3814

Focus on the Modal when it opens.

@ngotchac ngotchac added A0-pleasereview 🤓 Pull request needs code review. M7-ui labels Jan 3, 2017
@@ -49,6 +50,14 @@ class Modal extends Component {
waiting: PropTypes.array
}

componentDidMount () {
const e = ReactDOM.findDOMNode(this.refs.dialog);
Copy link
Contributor

Choose a reason for hiding this comment

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

Would have preferred const element = ReactDOM... instead of the single e that could mean error, event, element, etc. (Not really gaining anything by being cryptic)

@derhuerst
Copy link
Contributor

Can confirm that this fixes the tabbing problem.

@jacogr jacogr added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Jan 3, 2017
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling c708b3b on ng-fix-modal-focus into ** on master**.

@jacogr jacogr merged commit 0f41c5b into master Jan 3, 2017
@jacogr jacogr deleted the ng-fix-modal-focus branch January 3, 2017 16:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants