-
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
onInputChange event not firing for AsyncCreatable #1506
Comments
Hi @rubencodes can you give a reproducible case? I ran the test suite and confirmed that onInputChange is being called. Here is the test case I ran on the AsyncCreatable
|
I realized that the function I was looking for is |
@agirton I am seeing this issue as well for the onInputChange (input) {
const { onInputChange } = this.props;
if (onInputChange) {
onInputChange(input);
}
// This value may be needed in between Select mounts (when this.select is null)
this.inputValue = input;
} Even though The correct code would look like this: onInputChange (input) {
const { onInputChange } = this.props;
// This value may be needed in between Select mounts (when this.select is null)
this.inputValue = input;
if (onInputChange) {
return onInputChange(input);
}
} cc: @JedWatson |
@agirton any news about this issue? I saw PRs for fix this and they had not merged |
I think this has been addressed, although if the input value is mutated by |
I'm trying to do some realtime cleaning of input as shown on the README.MD:
However, when using this option with AsyncCreatable, I'm finding it doesn't run at all. I'm on version 1.0.0-rc.2.
The text was updated successfully, but these errors were encountered: