mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
fix: handled issue create modal submission on clicking enter key (#3593)
This commit is contained in:
parent
346c6f5414
commit
c1c0297b6d
@ -250,7 +250,7 @@ export const IssueFormRoot: FC<IssueFormProps> = observer((props) => {
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
<form>
|
<form onSubmit={handleSubmit((data) => handleFormSubmit(data))}>
|
||||||
<div className="space-y-5">
|
<div className="space-y-5">
|
||||||
<div className="flex items-center gap-x-2">
|
<div className="flex items-center gap-x-2">
|
||||||
{/* Don't show project selection if editing an issue */}
|
{/* Don't show project selection if editing an issue */}
|
||||||
@ -699,13 +699,7 @@ export const IssueFormRoot: FC<IssueFormProps> = observer((props) => {
|
|||||||
</Fragment>
|
</Fragment>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<Button
|
<Button variant="primary" type="submit" size="sm" loading={isSubmitting} tabIndex={isDraft ? 19 : 18}>
|
||||||
variant="primary"
|
|
||||||
size="sm"
|
|
||||||
loading={isSubmitting}
|
|
||||||
tabIndex={isDraft ? 19 : 18}
|
|
||||||
onClick={handleSubmit((data) => handleFormSubmit(data))}
|
|
||||||
>
|
|
||||||
{data?.id ? (isSubmitting ? "Updating" : "Update issue") : isSubmitting ? "Creating" : "Create issue"}
|
{data?.id ? (isSubmitting ? "Updating" : "Update issue") : isSubmitting ? "Creating" : "Create issue"}
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user