Fixed use directive

This commit is contained in:
Simon Cambier
2023-01-03 10:47:32 +01:00
parent 294df3da25
commit b1f6a89e16

View File

@@ -19,12 +19,15 @@
} }
} }
async function selectInput() { function selectInput(_?: HTMLElement): void {
await tick() tick()
elInput.focus() .then(() => {
await tick() elInput.focus()
elInput.select() return tick()
await tick() })
.then(() => {
elInput.select()
})
} }
const debouncedOnInput = debounce(() => { const debouncedOnInput = debounce(() => {