Error in user YAML: (<unknown>): found character that cannot start any token while scanning for the next token at line 5 column 16
---
title: Auto submit payment and shipping checkout form only on needed element change
issue: NEXT-15051
author: Tobias Berge
author_email: [email protected]
author_github: @tobiasberge
---
- Added plugin option
changeTriggerSelectors
inResources/app/storefront/src/plugin/forms/form-auto-submit.plugin.js
- Changed method
_onChange
inResources/app/storefront/src/plugin/forms/form-auto-submit.plugin.js
to verify if configured selectors exist and match the change events target - Changed method
init
inResources/app/storefront/src/plugin/forms/form-auto-submit.plugin.js
and throw new Error when optionchangeTriggerSelectors
is used but not an array - Added new twig variable
formAjaxSubmitOptions
inResources/views/storefront/component/payment/payment-form.html.twig
to set options fordata-form-auto-submit
- Added new inner twig block
page_checkout_change_payment_form_element
to allow overwritingformAjaxSubmitOptions
- Added new inner twig block
- Added new twig variable
formAjaxSubmitOptions
inResources/views/storefront/component/shipping/shipping-form.html.twig
to set options fordata-form-auto-submit
- Added new inner twig block
page_checkout_change_shipping_form_element
to allow overwritingformAjaxSubmitOptions
- Added new inner twig block