diff --git a/frontend/src/_components/OrganizationManager/CreateOrganization.jsx b/frontend/src/_components/OrganizationManager/CreateOrganization.jsx index 7a2f91709b..adfd77ef71 100644 --- a/frontend/src/_components/OrganizationManager/CreateOrganization.jsx +++ b/frontend/src/_components/OrganizationManager/CreateOrganization.jsx @@ -35,6 +35,13 @@ export const CreateOrganization = ({ showCreateOrg, setShowCreateOrg }) => { } }; + const handleKeyDown = (e) => { + if (e.keyCode === 13) { + e.preventDefault(); + createOrganization(); + } + }; + const handleInputChange = (e) => { const value = e.target.value; setErrorText(''); @@ -62,6 +69,7 @@ export const CreateOrganization = ({ showCreateOrg, setShowCreateOrg }) => {