-
Notifications
You must be signed in to change notification settings - Fork 81
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
Autocomplete filters by value only instead of value & text #103
Comments
Should be fixed in v1.6.2 |
@jannikbuschke while this fixes the search-issue, it introduces a new error when resetting the form using Formik's I've tested this with the initial value set to both Any ideas? |
hi @thj-dk , thanks for bringing this up. Will need to investigate. |
Did you get any chance of looking into this yet? |
Should be fixed in v2.0.1. Feel free to reopen if otherwise. |
Sounds good! |
The fix to the original issue and the new fix conflict unfortunately and seem to not work with ant d 3. I just tried to apply the changes to v1.9 but I get errors. You can check if
|
No worries. We'll prioritize upgrading to antd4 asap. Thank you. |
When I use an Autocomplete from this package, it seems to set the
value
of the autocomplete field as the input from the textbox. This is fine when I search for anything that is not contained in the 'value' field of my dataset but, as soon as I enter a value that is part of the dataset'svalue
field, it automatically assigns that option as the only possible option. The normal ant autocomplete will keep showing me available options from the dataset'stext
field.A possible fix could be to only set the Autocomplete's
value
attribute when an option is SELECTED and not when text is being typed into the input box.As an example, if I have the following data:
And I type in a '1' into the input box, the selected value will automatically become the second element
{value: 1, text: 'Text With 2'}
, even though I would expect it to also show me{value: 2, text: 'Text With 1'}
as an option.The text was updated successfully, but these errors were encountered: