mirror of
https://github.com/strapi/strapi.git
synced 2025-10-14 17:43:01 +00:00
Fix submit button
This commit is contained in:
parent
559548ef33
commit
6b0d0c2e6e
@ -1249,7 +1249,7 @@ const FormModal = () => {
|
||||
<div style={{ margin: 'auto 0' }}>
|
||||
{isCreatingAttribute && !isInFirstComponentStep && (
|
||||
<Button
|
||||
type="button"
|
||||
type={isCreating ? 'button' : 'submit'}
|
||||
color="success"
|
||||
onClick={e => {
|
||||
handleSubmit(e, false);
|
||||
@ -1287,7 +1287,7 @@ const FormModal = () => {
|
||||
</Button>
|
||||
)}
|
||||
<Button
|
||||
type="submit"
|
||||
type={isCreating ? 'submit' : 'button'}
|
||||
color={
|
||||
(isCreatingContentType ||
|
||||
isCreatingComponent ||
|
||||
@ -1296,7 +1296,7 @@ const FormModal = () => {
|
||||
? 'success'
|
||||
: 'primary'
|
||||
}
|
||||
onClick={handleSubmit}
|
||||
onClick={e => handleSubmit(e, true)}
|
||||
icon={
|
||||
(isCreatingAttribute &&
|
||||
!isCreatingComponentFromAView &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user