Search: tweak search functions

This commit is contained in:
Pieter Vander Vennet 2024-09-24 18:08:01 +02:00
parent 29dce0d468
commit 2fe2541b45
7 changed files with 31 additions and 15 deletions

View file

@ -20,6 +20,8 @@
export let isFocused: UIEventSource<boolean> = undefined
let inputElement: HTMLInputElement
export let autofocus = false
isFocused?.addCallback(focussed => {
if (focussed) {
requestAnimationFrame(() => {
@ -31,6 +33,10 @@
}
})
if(autofocus){
isFocused.set(true)
}
</script>