Skip to content

feat(Input): enable refs on Input components#178

Merged
eddywashere merged 1 commit intomasterfrom
enable-input-ref
Oct 16, 2016
Merged

feat(Input): enable refs on Input components#178
eddywashere merged 1 commit intomasterfrom
enable-input-ref

Conversation

@eddywashere
Copy link
Copy Markdown
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.

1 participant