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

Using with redux-form #78

Closed
hannupekka opened this issue Jan 15, 2016 · 2 comments
Closed

Using with redux-form #78

hannupekka opened this issue Jan 15, 2016 · 2 comments

Comments

@hannupekka
Copy link

Im not sure if this really is this projects problem, but I have a form that uses this component as one of it's fields:

<Geosuggest onChange={this.onChange.bind(this)}

Form is validated using https://github.com/erikras/redux-form which seems to capture onChange events of this component somehow since my handler is not being called.

I guess this is because this project does not use prefixed onChange property?

@hannupekka
Copy link
Author

Managed to get around this by wrapping Geosuggest in additional div:

<div onChange={this.onChange.bind(this)}>
    <Geosuggest onSuggestSelect={this.onSuggestSelect.bind(this)} {...location} />
</div>

@ro-ka
Copy link
Contributor

ro-ka commented Jan 15, 2016

Great!

In general: Is it a problem that we’re using onChange?

@ro-ka ro-ka closed this as completed Jan 15, 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

No branches or pull requests

2 participants