From 5a70ad2433770d9c5f1e421a37da034f55f99021 Mon Sep 17 00:00:00 2001 From: Kenneth Jannette Date: Wed, 21 Feb 2024 22:09:39 -0600 Subject: [PATCH] More --- src/Components/Document/DocEditPage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Components/Document/DocEditPage.js b/src/Components/Document/DocEditPage.js index a51bdf8..079b915 100644 --- a/src/Components/Document/DocEditPage.js +++ b/src/Components/Document/DocEditPage.js @@ -358,6 +358,7 @@ const DocEditPage = () => { async function createAndReturnDocx() { setIsBusy(true); + window.scrollTo({ top: 0, behavior: "smooth" }); const response = await handleCreateDocx(); if (response.status === 200) { setTimeout(getDocx, 5000); @@ -365,8 +366,7 @@ const DocEditPage = () => { } else { setShowErrorModal(true); } - onScrollClick(); - setTimeout(flipBusy, 3000); + setTimeout(flipBusy, 2500); } async function cleanUpDocx() {