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() {
|
function handleClose() {
|
||||||
visible.value = false;
|
|
||||||
// handle with setTimeout to prevent user from seeing some operations
|
// handle with setTimeout to prevent user from seeing some operations
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
visible.value = false;
|
||||||
resultOptions.value = [];
|
resultOptions.value = [];
|
||||||
keyword.value = '';
|
keyword.value = '';
|
||||||
}, 200);
|
}, 200);
|
||||||
|
Loading…
Reference in New Issue
Block a user