We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8bff3cc commit e4d8dd2Copy full SHA for e4d8dd2
1 file changed
source/features/add-quick-review-buttons.js
@@ -55,4 +55,14 @@ export default function () {
55
radio.closest('.form-checkbox').remove();
56
}
57
submitButton.remove();
58
+
59
+ // Freeze form to avoid duplicate submissions
60
+ select('#submit-review').addEventListener('submit', async () => {
61
+ // Delay disabling the fields to let them be submitted first
62
+ setTimeout(() => {
63
+ for (const control of select.all('#submit-review button, #submit-review textarea')) {
64
+ control.disabled = true;
65
+ }
66
+ });
67
68
0 commit comments