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 => {
16
16
const FormButtons = props => {
17
17
return (
18
18
< 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 >
20
21
</ div >
21
22
)
22
23
}
@@ -28,6 +29,7 @@ const App = () => (
28
29
text_box_1 : 'hue' ,
29
30
text_box_3 : 'initial'
30
31
} }
32
+ keepDirtyOnReinitialize
31
33
clearedValue = { 'bla' }
32
34
layoutMapper = { layoutMapper }
33
35
formFieldsMapper = { formFieldsMapper }
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ const FormRenderer = ({
33
33
subscription,
34
34
clearedValue,
35
35
schema,
36
+ ...props
36
37
} ) => {
37
38
let schemaError ;
38
39
try {
@@ -51,6 +52,7 @@ const FormRenderer = ({
51
52
52
53
return (
53
54
< Form
55
+ { ...props }
54
56
onSubmit = { onSubmit }
55
57
mutators = { { ...arrayMutators } }
56
58
decorators = { [ createFocusDecorator ( ) ] }
You can’t perform that action at this time.
0 commit comments