Fix country/state selection for shipping address; missing controller and data

This commit is contained in:
Matt-Yorkley
2022-01-30 09:46:44 +00:00
parent 611beb2e90
commit 5e321c9f48

View File

@@ -129,7 +129,7 @@
= ship_address.text_field :zipcode, { placeholder: t("split_checkout.step1.address.zipcode.placeholder") }
= f.error_message_on "ship_address.zipcode"
%div
%div{ "data-controller": "dependant-select", "data-dependant-select-options-value": countries_with_states }
- ship_address_country = @order.ship_address.country || DefaultCountry.country
%div.checkout-input