mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-08-16 04:39:15 +00:00
refactor: clear searach result after close
Signed-off-by: Andy Lee <andy.lee@suse.com>
This commit is contained in:
parent
57ee92051e
commit
9f9069fb63
@ -191,6 +191,7 @@ export default {
|
||||
|
||||
closeSearch() {
|
||||
this.showSearch = false;
|
||||
this.searchAddon?.clearDecorations();
|
||||
this.terminal?.focus();
|
||||
},
|
||||
|
||||
@ -212,6 +213,8 @@ export default {
|
||||
|
||||
onSearchInput() {
|
||||
if (!this.searchQuery) {
|
||||
this.searchAddon?.clearDecorations();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user