fix(components): Fix the issue of search box popping up repeatedly due to carriage return (#468)

This commit is contained in:
青菜白玉汤
2024-06-02 00:41:00 +08:00
committed by GitHub
parent 8efdb10d86
commit 5bd96b8dd3

View File

@ -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);