]> BookStack Code Mirror - bookstack/blobdiff - resources/js/components/page-comment.js
Comments: Updated to show form in expected location
[bookstack] / resources / js / components / page-comment.js
index ff86297e2cf4e2a8627080e9a482067af3619aa9..43159b42cc64ddc9fdd381eb0ca6e6ad886270ae 100644 (file)
@@ -25,7 +25,10 @@ export class PageComment extends Component {
     }
 
     setupListeners() {
-        this.replyButton.addEventListener('click', () => this.$emit('reply', {id: this.commentLocalId}));
+        this.replyButton.addEventListener('click', () => this.$emit('reply', {
+            id: this.commentLocalId,
+            element: this.container,
+        }));
         this.editButton.addEventListener('click', this.startEdit.bind(this));
         this.deleteButton.addEventListener('click', this.delete.bind(this));
         this.form.addEventListener('submit', this.update.bind(this));