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() {
await tick()
elInput.focus()
await tick()
elInput.select()
await tick()
function selectInput(_?: HTMLElement): void {
tick()
.then(() => {
elInput.focus()
return tick()
})
.then(() => {
elInput.select()
})
}
const debouncedOnInput = debounce(() => {