Skip to content

Commit

Permalink
feat: handle quoting multiple posts, focus after quoting
Browse files Browse the repository at this point in the history
  • Loading branch information
akinsey committed Nov 8, 2021
1 parent 382f37c commit 27686a5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/layout/Editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,9 @@ export default {
})
watch(() => props.quote, p => {
if (p) nextTick(() => v.posting.post = { title: 'RE:' + props.thread, body: p.body, thread_id: props.thread.id})
if (p && v.posting?.post?.body) nextTick(() => v.posting.post = { title: 'RE:' + props.thread, body: v.posting.post.body + p.body, thread_id: props.thread.id})
else if (p) nextTick(() => v.posting.post = { title: 'RE:' + props.thread, body: p.body, thread_id: props.thread.id})
nextTick(() => v.postEditorEl.focus())
})
// invalidate poll when closing poll creator
Expand Down

0 comments on commit 27686a5

Please sign in to comment.