File tree Expand file tree Collapse file tree 2 files changed +6
-16
lines changed
app/code/Magento/Checkout/view/frontend/web Expand file tree Collapse file tree 2 files changed +6
-16
lines changed Original file line number Diff line number Diff line change @@ -123,20 +123,6 @@ define([
123123 $ ( '[data-block="minicart"]' ) . find ( '[data-role="dropdownDialog"]' ) . dropdownDialog ( 'close' ) ;
124124 } ,
125125
126- /**
127- * @return {Boolean }
128- */
129- closeSidebar : function ( ) {
130- var minicart = $ ( '[data-block="minicart"]' ) ;
131-
132- minicart . on ( 'click' , '[data-action="close"]' , function ( event ) {
133- event . stopPropagation ( ) ;
134- minicart . find ( '[data-role="dropdownDialog"]' ) . dropdownDialog ( 'close' ) ;
135- } ) ;
136-
137- return true ;
138- } ,
139-
140126 /**
141127 * @param {String } productType
142128 * @return {*|String }
Original file line number Diff line number Diff line change 2121 id ="btn-minicart-close "
2222 class ="action close "
2323 data-action ="close "
24- data-bind ="attr: { title: $t('Close') } ">
24+ data-bind ="
25+ attr: {
26+ title: $t('Close')
27+ },
28+ click: closeMinicart()
29+ ">
2530 < span translate ="'Close' "/>
2631 </ button >
2732
7479
7580 < ifnot args ="getCartParam('summary_count') ">
7681 < strong class ="subtitle empty "
77- data-bind ="visible: closeSidebar() "
7882 translate ="'You have no items in your shopping cart.' "
7983 />
8084 < if args ="getCartParam('cart_empty_message') ">
You can’t perform that action at this time.
0 commit comments