File tree Expand file tree Collapse file tree 2 files changed +16
-8
lines changed
client/modules/IDE/components Expand file tree Collapse file tree 2 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -55,11 +55,15 @@ function NewFileForm() {
55
55
</ React . Fragment >
56
56
) }
57
57
</ Field >
58
- < Button type = "submit" disabled = { invalid || submitting } >
59
- { t ( 'NewFileForm.AddFileSubmit' ) }
60
- </ Button >
58
+ < Field name = "submitButton" >
59
+ { ( ) => (
60
+ < Button type = "submit" disabled = { submitting } >
61
+ { t ( 'NewFileForm.AddFileSubmit' ) }
62
+ </ Button >
63
+ ) }
64
+ </ Field >
61
65
</ div >
62
- { touched . name && errors . name && (
66
+ { touched . submitButton && errors . name && (
63
67
< span className = "form-error" > { errors . name } </ span >
64
68
) }
65
69
</ form >
Original file line number Diff line number Diff line change @@ -52,11 +52,15 @@ function NewFolderForm() {
52
52
</ React . Fragment >
53
53
) }
54
54
</ Field >
55
- < Button type = "submit" disabled = { invalid || submitting } >
56
- { t ( 'NewFolderForm.AddFolderSubmit' ) }
57
- </ Button >
55
+ < Field name = "submitButton" >
56
+ { ( ) => (
57
+ < Button type = "submit" disabled = { submitting } >
58
+ { t ( 'NewFolderForm.AddFolderSubmit' ) }
59
+ </ Button >
60
+ ) }
61
+ </ Field >
58
62
</ div >
59
- { touched . name && errors . name && (
63
+ { touched . submitButton && errors . name && (
60
64
< span className = "form-error" > { errors . name } </ span >
61
65
) }
62
66
</ form >
You can’t perform that action at this time.
0 commit comments