Skip to content

Commit 9ff2c83

Browse files
author
Jicheng Lu
committed
minor change
1 parent e1bea0a commit 9ff2c83

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/lib/common/Select.svelte

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,11 @@
173173
/** @param {any} e */
174174
function changeSearchValue(e) {
175175
searchValue = e.target.value || '';
176-
clearTimeout(timer);
176+
177+
if (timer) {
178+
clearTimeout(timer);
179+
}
180+
177181
timer = setTimeout(() => {
178182
applySearchFilter();
179183
verifySelectAll();

0 commit comments

Comments
 (0)