Skip to content

Commit 785c9ea

Browse files
committed
fix(User Form): Disable auto_submit on LocaleSelect
The default behavior of LocaleSelect is to auto submit the form. We do not want this for the user edit form. (cherry picked from commit 82a2064)
1 parent 4662d5a commit 785c9ea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/views/alchemy/admin/users/_fields.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<% if Alchemy::I18n.available_locales.many? %>
66
<div class="input select">
77
<%= f.label(:language) %>
8-
<%= render Alchemy::Admin::LocaleSelect.new(f.field_name(:language)) %>
8+
<%= render Alchemy::Admin::LocaleSelect.new(f.field_name(:language), auto_submit: false) %>
99
</div>
1010
<% end %>
1111
<%= f.input :password, required: while_signup?, input_html: {autocomplete: "new-password"} %>

0 commit comments

Comments
 (0)