diff --git a/app/create/layout.tsx b/app/create/layout.tsx index 11cec93..b7e5ec0 100644 --- a/app/create/layout.tsx +++ b/app/create/layout.tsx @@ -59,12 +59,18 @@ function CreateFlowLayoutContent({ children }: { children: ReactNode }) { const previousStep = getPreviousStep(); const handleNext = () => { + if (typeof document !== "undefined" && document.activeElement instanceof HTMLElement) { + document.activeElement.blur(); + } if (nextStep) { router.push(`/create/${nextStep}`); } }; const handleBack = () => { + if (typeof document !== "undefined" && document.activeElement instanceof HTMLElement) { + document.activeElement.blur(); + } if (previousStep) { router.push(`/create/${previousStep}`); } diff --git a/app/create/review/page.tsx b/app/create/review/page.tsx index e51c7b6..6407d98 100644 --- a/app/create/review/page.tsx +++ b/app/create/review/page.tsx @@ -7,7 +7,7 @@ import RuleCard from "../../components/cards/RuleCard"; export default function ReviewPage() { return (