This commit is contained in:
Timothy Jaeryang Baek 2025-09-18 17:47:32 -05:00
parent 2de11f8daf
commit c07086401e
3 changed files with 12 additions and 0 deletions

View file

@ -43,6 +43,10 @@
let searchDebounceTimeout; let searchDebounceTimeout;
const searchHandler = async () => { const searchHandler = async () => {
if (!show) {
return;
}
if (searchDebounceTimeout) { if (searchDebounceTimeout) {
clearTimeout(searchDebounceTimeout); clearTimeout(searchDebounceTimeout);
} }

View file

@ -39,6 +39,10 @@
} }
const searchHandler = async () => { const searchHandler = async () => {
if (!show) {
return;
}
if (searchDebounceTimeout) { if (searchDebounceTimeout) {
clearTimeout(searchDebounceTimeout); clearTimeout(searchDebounceTimeout);
} }

View file

@ -91,6 +91,10 @@
}; };
const searchHandler = async () => { const searchHandler = async () => {
if (!show) {
return;
}
if (searchDebounceTimeout) { if (searchDebounceTimeout) {
clearTimeout(searchDebounceTimeout); clearTimeout(searchDebounceTimeout);
} }