react-admin icon indicating copy to clipboard operation
react-admin copied to clipboard

Enhance SelectInput to return the selected choice onChange to set state on Wizard form review step

Open wattry opened this issue 9 months ago • 5 comments

Is your feature request related to a problem? Please describe. When using the select input we sometimes need to make a decision or add optionText as a display value. Specifically when trying to set a display value for the review step of a Wizard form. Autocomplete passes back the choice onChange, which allows us to populate a context provider with the corresponding display value for the optionValue, often times it is an id which is meaningless to the user.

Describe the solution you'd like We'd like for the SelectInput and SelectArrayInput, preferably all choice inputs, to follow the same behavior of the autocomplete input by passing back the selected choice onChange events.

Additional context Add any other context or screenshots about the feature request here.

Here is the documentation AutoCompleteInput

AutocompleteArrayInput

wattry avatar May 15 '24 19:05 wattry