summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar 오지환 (Cooper) <cooper@chequer.io> 2023-08-18 06:15:33 +0900
committerGravatar GitHub <noreply@github.com> 2023-08-17 23:15:33 +0200
commitccf45ea79f849b71978907262a34050d6afdbe8d (patch)
treeb5577ef3d7d5bdc6f6a9daa05373db9c3b85cdd0
parentd8939719446c0504da7b151037f0aba197a4734c (diff)
downloadrefined-github-ccf45ea79f849b71978907262a34050d6afdbe8d.tar.gz
refined-github-ccf45ea79f849b71978907262a34050d6afdbe8d.tar.zst
refined-github-ccf45ea79f849b71978907262a34050d6afdbe8d.zip
Restore `quick-comment-hiding` (#6825)
-rw-r--r--source/features/quick-comment-hiding.tsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/features/quick-comment-hiding.tsx b/source/features/quick-comment-hiding.tsx
index 3f87911f..15075f2c 100644
--- a/source/features/quick-comment-hiding.tsx
+++ b/source/features/quick-comment-hiding.tsx
@@ -26,6 +26,7 @@ function generateSubmenu(hideButton: Element): void {
const newForm = hideCommentForm.cloneNode();
const fields = [...hideCommentForm.elements].map(field => field.cloneNode());
newForm.append(<i hidden>{fields}</i>); // Add existing fields (comment ID, token)
+ newForm.setAttribute('novalidate', 'true'); // Ignore the form's required attributes
// Imitate existing menu, reset classes
newForm.className = ['dropdown-menu', 'dropdown-menu-sw', 'color-fg-default', 'show-more-popover', 'anim-scale-in'].join(' ');