[RANTS-29] fix: enter key does not work in the workspace member invite modal (#6816)

This commit is contained in:
Prateek Shourya
2025-03-25 20:15:35 +05:30
committed by GitHub
parent aea5f39059
commit caa522118d

View File

@@ -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}