Skip to content

Commit 6fb873e

Browse files
committed
Pass 'dir' TextField prop through to input component
1 parent 047dbf4 commit 6fb873e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ui/app/components/ui/text-field/text-field.component.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const styles = {
6767
}
6868

6969
const TextField = props => {
70-
const { error, classes, material, startAdornment, largeLabel, ...textFieldProps } = props
70+
const { error, classes, material, startAdornment, largeLabel, dir, ...textFieldProps } = props
7171

7272
return (
7373
<MaterialTextField
@@ -91,6 +91,9 @@ const TextField = props => {
9191
underline: material ? classes.materialUnderline : '',
9292
focused: material ? '' : classes.inputFocused,
9393
},
94+
inputProps: {
95+
dir,
96+
},
9497
}}
9598
{...textFieldProps}
9699
/>
@@ -104,6 +107,7 @@ TextField.defaultProps = {
104107
TextField.propTypes = {
105108
error: PropTypes.string,
106109
classes: PropTypes.object,
110+
dir: PropTypes.string,
107111
material: PropTypes.bool,
108112
startAdornment: PropTypes.element,
109113
largeLabel: PropTypes.bool,

0 commit comments

Comments
 (0)