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

Use autoFocus where possible #3212

Merged
merged 2 commits into from
Jul 26, 2016
Merged

Use autoFocus where possible #3212

merged 2 commits into from
Jul 26, 2016

Conversation

wmertens
Copy link
Contributor

React does the right thing with it and Elemental-UI already supports it: elementalui/elemental#165

This removes stateful code. It also works in the Modal because the Modal will not render its contents until it opens: https://github.com/elementalui/elemental/blob/620efc246d7f5fd123a2af3fa7f07bf4e745a0fb/src/components/Modal.js#L127-L128

React does the right thing with it and Elemental-UI already supports it: elementalui/elemental#165

This removes stateful code. It also works in the Modal because the Modal will not render its contents until it opens: https://github.com/elementalui/elemental/blob/620efc246d7f5fd123a2af3fa7f07bf4e745a0fb/src/components/Modal.js#L127-L128
:( elementalUI doesn't proxy the functions
@JedWatson
Copy link
Member

👍 looks good @wmertens.

@JedWatson JedWatson merged commit ad6c52c into keystonejs:master Jul 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants