Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

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

Prateek Shouryacaa522118dcb
diff --git a/web/core/components/workspace/invite-modal/form.tsx b/web/core/components/workspace/invite-modal/form.tsx
index 1178f1f6ec..cbf53e237d 100644
--- a/web/core/components/workspace/invite-modal/form.tsx
+++ b/web/core/components/workspace/invite-modal/form.tsx
@@ -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}