fix reply cancel button not closing when clicking on the x
This commit is contained in:
@@ -2302,7 +2302,7 @@ class CommentSystem {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Cancel Reply
|
// Cancel Reply
|
||||||
if (target.matches('.cancel-reply')) {
|
if (target.closest('.cancel-reply')) {
|
||||||
const form = target.closest('.reply-input');
|
const form = target.closest('.reply-input');
|
||||||
if (form) form.remove();
|
if (form) form.remove();
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user