working on task members

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2025-07-23 15:41:23 +02:00
parent ddeb2a8d88
commit 2625c360b8
6 changed files with 56 additions and 25 deletions

View File

@@ -2,7 +2,10 @@
import { t } from '../translations.svelte.js'
import { tick } from "svelte";
let { getOptionsFor = text => {}, onSelect = text => [] } = $props();
let {
getCandidates = text => {},
onSelect = text => []
} = $props();
let text = $state('')
let options = $state({});
@@ -35,7 +38,8 @@
} else if (key.length<2){
text += evt.key
}
options = await getOptionsFor(text);
options = await getCandidates(text);
console.log({options:options})
await tick();
for (let o of select.getElementsByTagName('option')) o.selected = false;
}