diff --git a/erpnext/selling/page/point_of_sale/pos_controller.js b/erpnext/selling/page/point_of_sale/pos_controller.js index ef1693f8798..39f6af1e81e 100644 --- a/erpnext/selling/page/point_of_sale/pos_controller.js +++ b/erpnext/selling/page/point_of_sale/pos_controller.js @@ -376,7 +376,6 @@ erpnext.PointOfSale.Controller = class { highlight_cart_item: (item) => { const cart_item = this.cart.get_cart_item(item); - this.cart.toggle_item_highlight(cart_item); }, item_field_focused: (fieldname) => { diff --git a/erpnext/selling/page/point_of_sale/pos_item_cart.js b/erpnext/selling/page/point_of_sale/pos_item_cart.js index 16bd15349d2..f166516fd93 100644 --- a/erpnext/selling/page/point_of_sale/pos_item_cart.js +++ b/erpnext/selling/page/point_of_sale/pos_item_cart.js @@ -280,7 +280,7 @@ erpnext.PointOfSale.ItemCart = class { toggle_item_highlight(item) { const $cart_item = $(item); - const item_is_highlighted = $cart_item.attr("style") == "background-color:var(--gray-50);"; + const item_is_highlighted = $cart_item.attr("style") == "background-color: var(--control-bg);"; if (!item || item_is_highlighted) { this.item_is_selected = false;