refs #3300 Fix focus of NewToot modal

This commit is contained in:
AkiraFukushima 2022-07-21 21:58:20 +09:00
parent 27dcbe4b9e
commit 87bc8b8ffc
No known key found for this signature in database
GPG Key ID: B6E51BAC4DE1A957
1 changed files with 6 additions and 4 deletions

View File

@ -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)
})
})