Skip to content

Commit 14d82cd

Browse files
authored
Merge pull request #276 from AlchemyCMS/locale-select-disable-auto-submit
fix(User Form): Disable auto_submit on LocaleSelect
2 parents 4aabd0a + 82a2064 commit 14d82cd

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Gemfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
source "https://rubygems.org"
22

3-
alchemy_branch = ENV.fetch("ALCHEMY_BRANCH", "8.2-stable")
4-
gem "alchemy_cms", github: "AlchemyCMS/alchemy_cms", branch: alchemy_branch
3+
# alchemy_branch = ENV.fetch("ALCHEMY_BRANCH", "8.2-stable")
4+
gem "alchemy_cms", github: "AlchemyCMS/alchemy_cms", branch: "locale-select-auto-submit-option"
55

66
rails_version = ENV.fetch("RAILS_VERSION", "8.0")
77
gem "rails", "~> #{rails_version}.0"

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)