fix list fetch timeout (#701)

* fix list fetch timeout

* list search modal added (replaces list select modal)

* query startsWith -> includes

---------

Co-authored-by: Christian Beutel <>
This commit is contained in:
slothful-vassal
2026-01-11 22:03:35 +01:00
committed by GitHub
parent 741cb51096
commit 9282f37c15
8 changed files with 266 additions and 107 deletions

View File

@@ -15,6 +15,7 @@
interface Props {
maxSearchLength?: number;
timeBetweenUpdates?: number,
value?: string;
items?: SearchItem[];
placeholder?: string;
@@ -29,6 +30,7 @@
let {
maxSearchLength = 5,
timeBetweenUpdates = 500,
value = $bindable(""),
items = $bindable([]),
placeholder = "Search...",
@@ -57,7 +59,7 @@
}
typingTimer = setTimeout(() => {
update(value);
}, 500);
}, timeBetweenUpdates);
}
function update(q: string) {