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(Input): enable refs on Input components #178

Merged
merged 1 commit into from
Oct 16, 2016
Merged

Conversation

eddywashere
Copy link
Member

PR enables refs on Input components. I think it’s fairly common to want to add a ref to an input for doing blur/focus or other events on the dom element.

Info can be found here: https://facebook.github.io/react/docs/more-about-refs.html#cautions

Refs may not be attached to a stateless function, because the component does not have a backing instance. You can always wrap a stateless component in a standard composite component and attach a ref to the composite component.

Related to #172

@eddywashere eddywashere merged commit ed9e584 into master Oct 16, 2016
@eddywashere eddywashere deleted the enable-input-ref branch October 16, 2016 16:08
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.

None yet

1 participant