We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42ec785 commit e045a33Copy full SHA for e045a33
src/components/layout/Editor.vue
@@ -314,11 +314,14 @@ export default {
314
if (t) nextTick(() => Object.assign(v.threadCopy, t))
315
})
316
317
+ watch(() => props.post, p => {
318
+ if (p) nextTick(() => Object.assign(v.posting.post, p))
319
+ })
320
+
321
// invalidate poll when closing poll creator
322
watch(() => v.threadCopy?.addPoll, () => { if (!v.threadCopy.addPoll) { v.threadCopy.pollValid = false }})
323
324
watch(() => props.showEditor, visible => {
- console.log(visible, props.threadEditorMode)
325
if (visible && props.threadEditorMode) nextTick(() => v.threadTitleEl.focus())
326
else if (visible && props.postEditorMode) nextTick(() => v.postEditorEl.focus())
327
else if (visible && props.currentMessage) {
0 commit comments