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() {