[RANTS-29] fix: enter key does not work in the workspace member invite modal (#6816)
This commit is contained in:
parent
aea5f39059
commit
caa522118d
1 changed files with 1 additions and 7 deletions
|
|
@ -16,13 +16,7 @@ export const InvitationForm = observer((props: TInvitationFormProps) => {
|
|||
const { title, description, children, actions, onSubmit, className } = props;
|
||||
|
||||
return (
|
||||
<form
|
||||
onSubmit={onSubmit}
|
||||
onKeyDown={(e) => {
|
||||
if (e.code === "Enter") e.preventDefault();
|
||||
}}
|
||||
className={className}
|
||||
>
|
||||
<form onSubmit={onSubmit} className={className}>
|
||||
<div className="space-y-4">
|
||||
<Dialog.Title as="h3" className="text-lg font-medium leading-6 text-custom-text-100">
|
||||
{title}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue