From 88dae7152241d73f01e106ed3779a9603e9ee6ef Mon Sep 17 00:00:00 2001 From: Kibi Kelburton Date: Sat, 16 May 2026 22:13:22 +0200 Subject: [PATCH] fix reply cancel button not closing when clicking on the x --- public/s/js/comments.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/s/js/comments.js b/public/s/js/comments.js index d9aec8b..2f0174a 100644 --- a/public/s/js/comments.js +++ b/public/s/js/comments.js @@ -2302,7 +2302,7 @@ class CommentSystem { } // Cancel Reply - if (target.matches('.cancel-reply')) { + if (target.closest('.cancel-reply')) { const form = target.closest('.reply-input'); if (form) form.remove(); return;