From bbc1b91b23497c13991cb9611c402465a5103bb4 Mon Sep 17 00:00:00 2001 From: anela Date: Fri, 3 Jun 2022 12:16:26 -0700 Subject: [PATCH] getNewStoryAndSubmit removes form and displays --- js/stories.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/stories.js b/js/stories.js index c9a6341..b63f8c9 100644 --- a/js/stories.js +++ b/js/stories.js @@ -79,6 +79,8 @@ async function getNewStoryAndSubmit(evt) { $allStoriesList.prepend(newStoryMarkup); //resets form with empty values $addStoryForm.trigger("reset"); + hidePageComponents(); + $allStoriesList.show(); } //event listener for add story form submit