1
0
mirror of https://github.com/h3poteto/whalebird-desktop synced 2025-02-07 23:38:48 +01:00

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

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