diff --git a/packages/ra-ui-materialui/src/input/LongTextInput.js b/packages/ra-ui-materialui/src/input/LongTextInput.js index 8e9167ee014..75453a2493d 100644 --- a/packages/ra-ui-materialui/src/input/LongTextInput.js +++ b/packages/ra-ui-materialui/src/input/LongTextInput.js @@ -7,7 +7,7 @@ import { TextInput } from './TextInput'; */ export const LongTextInput = props => { console.warn( - 'The LongTextInput component is deprecated. You should instead use the TextInput component and set its multiline prop to true.' + 'The LongTextInput component is deprecated. You should instead use the TextInput component and set its multiline and fullWidth props to true.' ); return ; @@ -17,6 +17,10 @@ LongTextInput.defaultProps = { multiline: true, }; -LongTextInput.displayName = 'LongTextInput'; +const EnhancedLongTextInput = addField(LongTextInput); -export default addField(LongTextInput); +EnhancedLongTextInput.defaultProps = { + fullWidth: true, +}; + +export default EnhancedLongTextInput;