fix(components): Fix the issue of search box popping up repeatedly due to carriage return (#468)
This commit is contained in:
parent
8efdb10d86
commit
5bd96b8dd3
@ -34,9 +34,9 @@ function search() {
|
||||
}
|
||||
|
||||
function handleClose() {
|
||||
visible.value = false;
|
||||
// handle with setTimeout to prevent user from seeing some operations
|
||||
setTimeout(() => {
|
||||
visible.value = false;
|
||||
resultOptions.value = [];
|
||||
keyword.value = '';
|
||||
}, 200);
|
||||
|
Loading…
Reference in New Issue
Block a user