We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
<TimezonePicker ... inputProps={{ value: this.searchQuery, onChange: this.handlerWhichShouldBeCalledButItIsnt }} >
Callback for search input change is not called.
According to docs callback for search input change should override Select's behavior and should be called.
The onQueryChange prop which you pass to Select in timezonePicker.tsx is just:
onQueryChange
Select
timezonePicker.tsx
private handleQueryChange = (query: string) => this.setState({ query });
No mentions about inputProps.onChange.
inputProps.onChange
And as I understand in Select onQueryChange has some priority over inputProps.onChange. Thus my callback which I pass to TimezonePicker is not called.
TimezonePicker
But it's just an assumption.
Please let me know if I do something wrong...
The text was updated successfully, but these errors were encountered:
Yeah, it looks like this API is unsupported despite what the docs say there. I would welcome a PR to add this feature.
Can you share a bit more about your use case and why you're trying to use a custom input change callback?
Sorry, something went wrong.
I am showing a custom right icon in the input when the search query is present (and hide it when it's empty).
Successfully merging a pull request may close this issue.
Steps to reproduce
Actual behavior
Callback for search input change is not called.
Expected behavior
According to docs callback for search input change should override Select's behavior and should be called.
Possible solution
The
onQueryChange
prop which you pass toSelect
intimezonePicker.tsx
is just:No mentions about
inputProps.onChange
.And as I understand in
Select
onQueryChange
has some priority overinputProps.onChange
.Thus my callback which I pass to
TimezonePicker
is not called.But it's just an assumption.
Please let me know if I do something wrong...
The text was updated successfully, but these errors were encountered: