-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
Bug when using multi select with custom title #136
Comments
Hi. Thanks for reporting the issue. This has been fixed in v2.21.3. Please update and test it out. |
Thanks for quick response.
In addition could you also fix custom title feature for array fields with autocomplete?
|
Damn! Thanks for catching it. I'll release the fix soon.
This will not work for autocomplete because the choices are loaded dynamically, so the form has no way of knowing the custom title of a value. We can cache the options for the current session but suppose when the user saves the form data and reloads the page, the cached options will be gone and the form will show the bare values instead of the titles. Other ideas? |
no ideas, cache doesn't sound like a solution |
Fix released in v2.21.4. Please upgrade and test it out. Thank you. |
Actual result: In multi select (https://bhch.github.io/react-json-form/playground/#5-multi-select-choices) when you replaces original choices with choices from (https://bhch.github.io/react-json-form/playground/#4-choices-with-custom-titles) you will see custom title in dropdown box but after selecting it you will see a value, instead of custom title - this is a bug
Expected result: when using multi select with custom title I should be able to see custom title in dropdown box and after selecting it. Value should be pass as a result. Like in https://bhch.github.io/react-json-form/playground/#4-choices-with-custom-titles
Please make sure that the fix will work fine with autocomplete feature.
Version: current version in playground
The text was updated successfully, but these errors were encountered: