Skip to content

Commit edac73c

Browse files
author
Oleksandr Dubovyk
committed
MAGETWO-44131: Sometimes "Estimate Shipping & Tax" section overlaps Newsletter Subscription form in Shopping Cart
1 parent 48d9643 commit edac73c

File tree

1 file changed

+6
-3
lines changed
  • app/code/Magento/Checkout/view/frontend/web/js/view/cart

1 file changed

+6
-3
lines changed

app/code/Magento/Checkout/view/frontend/web/js/view/cart/totals.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
* Copyright © 2015 Magento. All rights reserved.
33
* See COPYING.txt for license details.
44
*/
5-
/*global define*/
65
define(
76
[
87
'uiComponent',
@@ -15,12 +14,16 @@ define(
1514
return Component.extend({
1615

1716
isLoading: totalsService.isLoading,
17+
18+
/**
19+
* @override
20+
*/
1821
initialize: function () {
1922
this._super();
20-
totalsService.totals.subscribe(function() {
23+
totalsService.totals.subscribe(function () {
2124
window.dispatchEvent(new Event('resize'));
2225
});
23-
shippingService.getShippingRates().subscribe(function() {
26+
shippingService.getShippingRates().subscribe(function () {
2427
window.dispatchEvent(new Event('resize'));
2528
});
2629
}

0 commit comments

Comments
 (0)