This commit is contained in:
2025-05-20 11:42:27 +02:00
parent 444b1f5370
commit b89d4f248c

View File

@@ -124,6 +124,13 @@
async function handleInputFocus() {
isOpen = true;
await updateVisibleCount(); // Ensure items render on focus
// these 2 timeouts are a more or less tmp fix for rendering items when dropdown opens
setTimeout(async () => {
await updateVisibleCount(); // Ensure items render on focus
}, 25);
setTimeout(async () => {
await updateVisibleCount(); // Ensure items render on focus
}, 50);
}
// Handle input typing to open dropdown