Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
SD-832 Remove autofocus attributes
Krzysztof Kalisz8cf660fa54bd
diff --git a/frontend/app/views/spree/checkout/registration.html.erb b/frontend/app/views/spree/checkout/registration.html.erbindex 6a6133c89f..5c587a07a1 100755--- a/frontend/app/views/spree/checkout/registration.html.erb+++ b/frontend/app/views/spree/checkout/registration.html.erb@@ -18,7 +18,7 @@<%= form_for @order, url: path, method: :put, html: { id: 'checkout_form_registration' } do |f| %><div class="form-group"><p class="form-group checkout-content-inner-field">- <%= f.email_field :email, class: 'spree-flat-input', placeholder: Spree.t(:email), autofocus: true %>+ <%= f.email_field :email, class: 'spree-flat-input', placeholder: Spree.t(:email) %></p></div><%= f.submit Spree.t(:continue_as_guest), class: 'btn btn-block btn-outline-primary spree-btn' %>diff --git a/frontend/app/views/spree/shared/_login.html.erb b/frontend/app/views/spree/shared/_login.html.erbindex 4098cd67c9..09d3e0acb5 100755--- a/frontend/app/views/spree/shared/_login.html.erb+++ b/frontend/app/views/spree/shared/_login.html.erb@@ -4,12 +4,12 @@<div id="password-credentials" class="mb-4"><div class="form-group mb-4"><p class="form-group checkout-content-inner-field">- <%= f.email_field :email, class: 'spree-flat-input', placeholder: Spree.t(:email), autofocus: true, value: params.dig(:spree_user, :email) %>+ <%= f.email_field :email, class: 'spree-flat-input', placeholder: Spree.t(:email), value: params.dig(:spree_user, :email) %></p></div><div class="form-group mb-4"><p class="form-group checkout-content-inner-field">- <%= f.password_field :password, class: 'spree-flat-input', placeholder: Spree.t(:password), autofocus: true %>+ <%= f.password_field :password, class: 'spree-flat-input', placeholder: Spree.t(:password) %></p></div></div>