Skip to content

Latest commit

 

History

History
13 lines (13 loc) · 753 Bytes

2022-07-26-add-input-delay-for-offcanvas-quantity-fields.md

File metadata and controls

13 lines (13 loc) · 753 Bytes
Error in user YAML: (<unknown>): found character that cannot start any token while scanning for the next token at line 5 column 16
---
title: Add input delay for offcanvas quantity fields
issue: NEXT-22595
author: Tobias Berge
author_email: t.berge@shopware.com
author_github: @tobiasberge
---

Storefront

  • Added new JS-plugin options to Resources/app/storefront/src/plugin/offcanvas-cart/offcanvas-cart.plugin.js
    • Added option changeProductQuantityTriggerNumberSelector
    • Added option changeQuantityInputDelay
  • Changed method _registerChangeQuantityProductTriggerEvents in offcanvas-cart.plugin.js and add separate handling for numeric input fields
  • Changed Resources/views/storefront/component/checkout/offcanvas-item.html.twig and renamed selector inside block component_offcanvas_product_buy_quantity_input to js-offcanvas-cart-change-quantity-number