Footer next button fix

This commit is contained in:
adilallo
2026-02-28 21:47:27 -07:00
parent b2ed1d438c
commit f5bfb25f5e
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -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}`);
}