File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
packages/react-form-renderer Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,8 @@ const submitTest = (...args) => new Promise(resolve => {
1616const FormButtons = props => {
1717 return (
1818 < div >
19- < button disabled = { props . submitting } type = "submit" > Submit</ button >
19+ < button disabled = { props . submitting || props . pristine } type = "submit" > Submit</ button >
20+ < button onClick = { props . reset } > reset</ button >
2021 </ div >
2122 )
2223}
@@ -28,6 +29,7 @@ const App = () => (
2829 text_box_1 : 'hue' ,
2930 text_box_3 : 'initial'
3031 } }
32+ keepDirtyOnReinitialize
3133 clearedValue = { 'bla' }
3234 layoutMapper = { layoutMapper }
3335 formFieldsMapper = { formFieldsMapper }
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ const FormRenderer = ({
3333 subscription,
3434 clearedValue,
3535 schema,
36+ ...props
3637} ) => {
3738 let schemaError ;
3839 try {
@@ -51,6 +52,7 @@ const FormRenderer = ({
5152
5253 return (
5354 < Form
55+ { ...props }
5456 onSubmit = { onSubmit }
5557 mutators = { { ...arrayMutators } }
5658 decorators = { [ createFocusDecorator ( ) ] }
You can’t perform that action at this time.
0 commit comments