Skip to content

armgit / spree

Public Imported from GitHub
0

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.

SD-918 Blur option value after click to avoid overlapping tooltips

Krzysztof Kalisz95aa73007379
diff --git a/frontend/app/assets/javascripts/spree/frontend/views/spree/products/cart_form.js b/frontend/app/assets/javascripts/spree/frontend/views/spree/products/cart_form.js
index 283e643c7d..08077b6fe7 100644
--- a/frontend/app/assets/javascripts/spree/frontend/views/spree/products/cart_form.js
+++ b/frontend/app/assets/javascripts/spree/frontend/views/spree/products/cart_form.js
@@ -62,7 +62,9 @@ function CartForm($, $cartForm) {
}
this.handleOptionValueClick = function(event) {
- this.applyCheckedOptionValue($(event.currentTarget))
+ var currentTarget = $(event.currentTarget)
+ this.applyCheckedOptionValue(currentTarget)
+ currentTarget.blur()
}.bind(this)
this.applyCheckedOptionValue = function($optionValue, initialUpdate) {