Fix search bar behaviour (step 7)
This commit is contained in:
parent
cb27e81b7c
commit
4a97f365b0
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user