From 5886765d8904de98db84b93d23b536fefd31373f Mon Sep 17 00:00:00 2001 From: novenary Date: Tue, 17 Sep 2024 00:36:48 +0300 Subject: [PATCH 1/6] post_status_form: fix enter key in subject field This fixes random actions being triggered by the enter key while the subject field is focused. When pressing enter, the browser simulates a click on the first "submit" button it finds in the form. A submit button is a button without `type="button"` set. Remediate this by setting the type attribute on all but the "Post" button. Additionally, inhibit the enter key in the subject field (ctrl+enter still works). --- src/components/poll/poll_form.vue | 2 ++ src/components/post_status_form/post_status_form.vue | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/src/components/poll/poll_form.vue b/src/components/poll/poll_form.vue index 146754db..a67115b6 100644 --- a/src/components/poll/poll_form.vue +++ b/src/components/poll/poll_form.vue @@ -24,6 +24,7 @@