Skip to content

Commit 43af65a

Browse files
author
Stanislav Idolov
committed
MAGETWO-39601: New Billing address form displays only for one payment method if it in edit state
1 parent 27fdc6b commit 43af65a

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

app/code/Magento/Checkout/view/frontend/layout/checkout_index_index.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,6 @@
263263
</item>
264264
</item>
265265
</item>
266-
<!-- TODO: add billing address form -->
267266
<item name="beforeMethods" xsi:type="array">
268267
<item name="component" xsi:type="string">uiComponent</item>
269268
<item name="displayArea" xsi:type="string">beforeMethods</item>

app/code/Magento/Checkout/view/frontend/web/js/view/billing-address.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ define(
3535
template: 'Magento_Checkout/billing-address'
3636
},
3737

38+
initialize: function () {
39+
this._super();
40+
quote.paymentMethod.subscribe(function() {
41+
this.cancelAddressEdit();
42+
}, this);
43+
},
44+
3845
initObservable: function () {
3946
this._super()
4047
.observe({

0 commit comments

Comments
 (0)