diff --git a/app/components/elements/Dialog.tsx b/app/components/elements/Dialog.tsx index ee0d67afa..0fa3ff365 100644 --- a/app/components/elements/Dialog.tsx +++ b/app/components/elements/Dialog.tsx @@ -91,6 +91,8 @@ function DialogElement({ tabIndex={-1} closedby="closerequest" onClose={onClose} + // a portal doesn't stop React events from bubbling to an outer form + onSubmit={(e) => e.stopPropagation()} {...backdropPressHandlers} > {children} diff --git a/app/features/tournament-admin/routes/to.$id.admin.registration.$tid.tsx b/app/features/tournament-admin/routes/to.$id.admin.registration.$tid.tsx index ec7aa9542..39c8f87ff 100644 --- a/app/features/tournament-admin/routes/to.$id.admin.registration.$tid.tsx +++ b/app/features/tournament-admin/routes/to.$id.admin.registration.$tid.tsx @@ -381,21 +381,16 @@ function ImportTeamSection({ heading={t("forms:regImportTeam")} onClose={() => setIsOpen(false)} > - {/* The modal is portaled out of the registration