Is it possible to render SelectInput with default value selected? I need to load the page with a default language selected. thanks.
My code:
export const CT_SELECT_I18N = [
{id: 'en', text: 'English'},
{id: 'pt', text: 'Português'},
{id: 'es', text: 'Español'},
];
const renderSelect = ({
meta: {touched, error} = {},
input: {...inputProps},
...props
}) => (
<SelectInput
error={!!(touched && error)}
helperText={touched && error}
{...inputProps}
{...props}
fullWidth
source="idioma"
choices={Constants.CT_SELECT_I18N}
translateChoice={false}
optionValue="id"
optionText="text"
/>
);