fix: magic delay

This commit is contained in:
tim
2025-08-10 12:30:09 +08:00
parent f6f4f198b0
commit bda2b54ce9

View File

@@ -120,9 +120,9 @@ const CommentItem = {
const toggleEditor = () => {
showEditor.value = !showEditor.value
if (showEditor.value) {
nextTick(() => {
setTimeout(() => {
editorWrapper.value?.scrollIntoView({ behavior: 'smooth', block: 'nearest' })
})
}, 100)
}
}