fix reply cancel button not closing when clicking on the x
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user