Skip to content

Issue #3377870: ShippingRateWidget ajax refresh does not refresh other form elements

The current ajaxRefresh function defined in the ShippingRateWidget class is used to refresh specific parts of the form when a different rate is selected. However if you extend a form with that widget embedded in it with something that changes depending on the selected rate then that extra form element is never refreshed during ajaxRefresh.

Core Commerce added AjaxFormTrait to refresh whole forms. Switch to using that instead of a specially crafted ajaxRefresh function. Less code, broader compatibility.

Closes #3377870

Merge request reports