diff options
author | 2023-08-18 06:15:33 +0900 | |
---|---|---|
committer | 2023-08-17 23:15:33 +0200 | |
commit | ccf45ea79f849b71978907262a34050d6afdbe8d (patch) | |
tree | b5577ef3d7d5bdc6f6a9daa05373db9c3b85cdd0 | |
parent | d8939719446c0504da7b151037f0aba197a4734c (diff) | |
download | refined-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.tsx | 1 |
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(' '); |