-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Getting value onBlur #186
Comments
@anthonator I'm not familiar, but with a typical |
Yes, |
👍 for adding this. would be nice if the first argument passed to the onChange callback was a similar event rather than just the value. P.S This issue was killing me today in conjunction with #188, as I want to trigger validation after the initial blur event, then on subsequent change events. If anyone else is in a similar situation, I ended up resolving it with this wrapper component.
|
+1 |
You might want to slightly change this.
But here you were expecting the state value which was set by OnChange So you could first call setState and use the callback to trigger OnChangeHandler
|
Is it possible to get the value of select on blur? Unlike
onChange
onBlur
returns an event. So when I do something likee.target.value
I always get an empty string.The text was updated successfully, but these errors were encountered: