mirror of
https://github.com/rommapp/romm.git
synced 2026-07-01 08:16:21 +00:00
fix: set initialSearch to false on input clear and update fetchRoms call in onMounted
This commit is contained in:
@@ -24,7 +24,7 @@ async function fetchRoms() {
|
||||
|
||||
function clearInput() {
|
||||
searchTerm.value = null;
|
||||
initialSearch.value = true;
|
||||
initialSearch.value = false;
|
||||
emitter?.emit("filterRoms", null);
|
||||
}
|
||||
|
||||
|
||||
@@ -127,7 +127,7 @@ watch(windowY, () => {
|
||||
|
||||
onMounted(async () => {
|
||||
scrolledToTop.value = true;
|
||||
await fetchRoms();
|
||||
fetchRoms();
|
||||
});
|
||||
|
||||
onUnmounted(() => {
|
||||
|
||||
Reference in New Issue
Block a user