diff --git a/packages/ra-ui-materialui/src/input/NullableBooleanInput.tsx b/packages/ra-ui-materialui/src/input/NullableBooleanInput.tsx index bdd2deb19e4..55d560b18ba 100644 --- a/packages/ra-ui-materialui/src/input/NullableBooleanInput.tsx +++ b/packages/ra-ui-materialui/src/input/NullableBooleanInput.tsx @@ -71,15 +71,15 @@ const NullableBooleanInput: FunctionComponent< ? { ...options, SelectProps: { - ...(options && options.SelectProps), displayEmpty: true, + ...(options && options.SelectProps), }, InputLabelProps: { - ...(options && options.InputLabelProps), shrink: true, + ...(options && options.InputLabelProps), }, } - : { ...options }; + : options; return (