fix: set initialSearch to false on input clear and update fetchRoms call in onMounted

This commit is contained in:
zurdi
2026-03-07 16:11:52 +00:00
parent ea4ea47b45
commit ea2532ff82
2 changed files with 2 additions and 2 deletions

View File

@@ -24,7 +24,7 @@ async function fetchRoms() {
function clearInput() {
searchTerm.value = null;
initialSearch.value = true;
initialSearch.value = false;
emitter?.emit("filterRoms", null);
}

View File

@@ -127,7 +127,7 @@ watch(windowY, () => {
onMounted(async () => {
scrolledToTop.value = true;
await fetchRoms();
fetchRoms();
});
onUnmounted(() => {