From ee723ee436b6f5f83ca3aa3d15053dc5f4375e5d Mon Sep 17 00:00:00 2001 From: Alex Musayev Date: Sun, 19 Jul 2026 01:39:28 +0300 Subject: [PATCH] Use native submit button in invites modal --- .../edit_available_invites_modal_component.html.erb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/components/edit_available_invites_modal_component.html.erb b/app/components/edit_available_invites_modal_component.html.erb index d8b9b2a1f..d2ed1fa7e 100644 --- a/app/components/edit_available_invites_modal_component.html.erb +++ b/app/components/edit_available_invites_modal_component.html.erb @@ -10,11 +10,10 @@ <% modal.with_footer do %> <%= tag.button "Update", - type: "button", + type: "submit", form: "available-invites-form-#{@user.id}", class: "inline-flex items-center justify-center whitespace-nowrap rounded-md bg-brand px-4 py-2 text-base font-semibold text-on-brand shadow-sm transition hover:bg-brand-hover focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-1", - data: { action: "click->modal#confirm" }, - onclick: "this.form.requestSubmit()" %> + data: { action: "modal#confirm" } %> <%= tag.button "Cancel", type: "button", class: "inline-flex items-center justify-center whitespace-nowrap rounded-md border border-border bg-surface px-4 py-2 text-base font-semibold text-body shadow-sm transition hover:bg-surface-muted focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-1",