From 5d8d29d9037b4830b78804c23ccf457bc1866d8b Mon Sep 17 00:00:00 2001 From: Elostay Date: Thu, 28 Sep 2023 15:38:21 +0300 Subject: [PATCH] Update index.js --- src/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/index.js b/src/index.js index af967a0..74193cc 100755 --- a/src/index.js +++ b/src/index.js @@ -28,9 +28,11 @@ fetchBreeds() function onClickSelect(e) { const breedId = e.target.value; + select.classList.add('hide'); loader.classList.remove('hide'); catInfo.classList.add('hide'); + fetchCatByBreed(breedId) .then(resp => { select.classList.remove('hide');