diff --git a/src/Checkbox.js b/src/Checkbox.js index 655e4158..fa7d9a28 100644 --- a/src/Checkbox.js +++ b/src/Checkbox.js @@ -35,6 +35,7 @@ const FormCheckbox = ({ onChange={onChangeValidate} /> } + {...form.otherProps} /> ); diff --git a/src/FieldSet.js b/src/FieldSet.js index aa6fc013..e4cac3d8 100644 --- a/src/FieldSet.js +++ b/src/FieldSet.js @@ -45,6 +45,7 @@ const FieldSet = ({ component="fieldset" className={classes.root} style={form.style} + {...form.otherProps} > {form.title && getLocalizedString(form.title)} diff --git a/src/Help.js b/src/Help.js index e14ef392..8cc91872 100644 --- a/src/Help.js +++ b/src/Help.js @@ -10,7 +10,7 @@ type Props = { }; const Help = ({ - form: { description, variant, align, color, noWrap, paragraph } + form: { description, variant, align, color, noWrap, paragraph, otherProps } }: Props) => ( {description} diff --git a/src/MultiSelect.js b/src/MultiSelect.js index a3b037dd..48981483 100644 --- a/src/MultiSelect.js +++ b/src/MultiSelect.js @@ -101,7 +101,7 @@ class MultiSelect extends Component { )); return ( - + {form.title && getLocalizedString(form.title)} diff --git a/src/NativeDateField.js b/src/NativeDateField.js index aa090a8e..6a831d02 100644 --- a/src/NativeDateField.js +++ b/src/NativeDateField.js @@ -28,6 +28,7 @@ const NativeDateField = (props: Props) => { form={Object.assign({}, form, { type })} value={getLocalizedDate(value)} otherProps={{ InputLabelProps: { shrink: true } }} + {...form.otherProps} /> ); }; diff --git a/src/Radios.js b/src/Radios.js index d27f164e..6b4cff64 100644 --- a/src/Radios.js +++ b/src/Radios.js @@ -52,7 +52,11 @@ class Radios extends Component { localization: { getLocalizedString } } = this.props; return ( - + {form.title && getLocalizedString(form.title)} diff --git a/src/Select.js b/src/Select.js index 58443925..8312e4af 100644 --- a/src/Select.js +++ b/src/Select.js @@ -101,7 +101,7 @@ class Select extends Component { } return ( - + {form.title && getLocalizedString(form.title)} diff --git a/src/Text.js b/src/Text.js index 77eecd59..ad6a3111 100755 --- a/src/Text.js +++ b/src/Text.js @@ -58,6 +58,7 @@ class Text extends React.Component { required={form.required} style={form.style} {...otherProps} + {...form.otherProps} /> ); }