Skip to content

Commit

Permalink
Merge pull request #3450 from marmelab/fix-long-text-input
Browse files Browse the repository at this point in the history
[RFR] Fix long text input isn't so long
djhi authored Jul 24, 2019
2 parents c4548c0 + 00a179f commit 6276620
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
@@ -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} />;
@@ -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 6276620

Please sign in to comment.