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