refs #3300 Fix focus of NewToot modal
This commit is contained in:
parent
27dcbe4b9e
commit
87bc8b8ffc
|
@ -151,10 +151,12 @@ export default defineComponent({
|
|||
})
|
||||
onMounted(() => {
|
||||
nextTick(() => {
|
||||
statusRef.value?.focus()
|
||||
if (fixCursorPos.value) {
|
||||
statusRef.value?.setSelectionRange(0, 0)
|
||||
}
|
||||
setTimeout(() => {
|
||||
statusRef.value?.focus()
|
||||
if (fixCursorPos.value) {
|
||||
statusRef.value?.setSelectionRange(0, 0)
|
||||
}
|
||||
}, 500)
|
||||
})
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue