fix reply cancel button not closing when clicking on the x

This commit is contained in:
2026-05-16 22:13:22 +02:00
parent b5d81ed71c
commit 88dae71522

View File

@@ -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;