Fixed use directive
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user