From 43b945d36f70d35b1f4acb38d1a0fe32a16e4fbf Mon Sep 17 00:00:00 2001 From: Nikolai Lopin Date: Wed, 3 Jul 2024 10:35:48 +0200 Subject: [PATCH] fix: remove the hacks (#1226) --- frontend/static/js/components/ReplyForm.vue | 9 --------- 1 file changed, 9 deletions(-) diff --git a/frontend/static/js/components/ReplyForm.vue b/frontend/static/js/components/ReplyForm.vue index f31c4c100..36b4bbc41 100644 --- a/frontend/static/js/components/ReplyForm.vue +++ b/frontend/static/js/components/ReplyForm.vue @@ -70,15 +70,6 @@ export default { } } }, - mounted: function() { - if (window.location.hash) { - const anchorEl = document.getElementById(window.location.hash.substring(1)) - if (anchorEl) { - window.location = window.location - anchorEl.scrollIntoView() - } - } - }, updated: function() { if (this.replyTo !== null && this.getEditor()) { // move the reply form under the comment