Fix search bar behaviour (step 7)

This commit is contained in:
Joshua Boniface 2025-03-02 14:43:55 -05:00
parent cb27e81b7c
commit 4a97f365b0

View File

@ -271,6 +271,13 @@ const toggleList = () => {
emit('update:modelValue', searchText.value);
}
// If we're turning filtering off (switching to list mode), scroll to selected VM
if (!isFilterActive.value) {
nextTick(() => {
scrollToSelectedVM();
});
}
// No need to emit toggle-list since we're not closing the list
return;
}