forked from MapComplete/MapComplete
Search: tweak search functions
This commit is contained in:
parent
29dce0d468
commit
2fe2541b45
7 changed files with 31 additions and 15 deletions
|
|
@ -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>
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue