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

fix login modal and react refs #61

Merged
merged 1 commit into from
Jan 15, 2017
Merged

Conversation

philschatz
Copy link
Owner

fixes #60

Facebook changed which element was attached to this.refs and also deprecated using this.refs in favor of the following syntax:

https://facebook.github.io/react/docs/refs-and-the-dom.html#the-ref-callback-attribute

@philschatz philschatz merged commit 3806802 into master Jan 15, 2017
@philschatz philschatz deleted the fix-login-and-react-refs branch January 15, 2017 20:57
@@ -28,8 +29,7 @@ const FilterCategory = React.createClass({
});
},
onFilterInputChange() {
const {filterInput} = this.refs;
Copy link
Collaborator

Choose a reason for hiding this comment

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

it's probably better to use event.target.value instead of doing a DOM lookup (and no need for refs that way ;) )

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.

Can't login
2 participants