Skip to content

Commit

Permalink
Fix long text input isn't so long
Browse files Browse the repository at this point in the history
closes #3433
  • Loading branch information
fzaninotto committed Jul 23, 2019
1 parent c4548c0 commit 00a179f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions packages/ra-ui-materialui/src/input/LongTextInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 <TextInput {...props} />;
Expand All @@ -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;

0 comments on commit 00a179f

Please sign in to comment.