From c7253c68e4d7776fe4c87601b7a61cbeaa47f9c3 Mon Sep 17 00:00:00 2001 From: Yufan Sheng Date: Mon, 17 Jun 2024 04:27:57 +0800 Subject: [PATCH] fix: invalid html for comment reply. --- .vscode/settings.json | 1 + src/asserts/scripts/yufan.me.js | 1 + 2 files changed, 2 insertions(+) diff --git a/.vscode/settings.json b/.vscode/settings.json index 8a66df4..3472512 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -81,6 +81,7 @@ "netease", "nextval", "nian", + "nofollow", "noto", "oppo", "opposans", diff --git a/src/asserts/scripts/yufan.me.js b/src/asserts/scripts/yufan.me.js index 1bb5519..d4164d2 100644 --- a/src/asserts/scripts/yufan.me.js +++ b/src/asserts/scripts/yufan.me.js @@ -153,6 +153,7 @@ if (typeof comments !== 'undefined' && comments !== null) { // Reply a comment. if (event.target.matches('.comment-reply-link')) { + cancelReply(); cancel.hidden = false; replyForm.querySelector('input[name="rid"]').value = event.target.dataset.rid;