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() {
5555 </ React . Fragment >
5656 ) }
5757 </ 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 >
6165 </ div >
62- { touched . name && errors . name && (
66+ { touched . submitButton && errors . name && (
6367 < span className = "form-error" > { errors . name } </ span >
6468 ) }
6569 </ form >
Original file line number Diff line number Diff line change @@ -52,11 +52,15 @@ function NewFolderForm() {
5252 </ React . Fragment >
5353 ) }
5454 </ 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 >
5862 </ div >
59- { touched . name && errors . name && (
63+ { touched . submitButton && errors . name && (
6064 < span className = "form-error" > { errors . name } </ span >
6165 ) }
6266 </ form >
You can’t perform that action at this time.
0 commit comments