We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8fce4ae commit ea90441Copy full SHA for ea90441
app/code/Magento/Paypal/view/frontend/web/js/paypal-checkout.js
@@ -54,17 +54,16 @@ define([
54
* Cancel confirmation handler
55
*
56
*/
57
- cancel: function () {
58
- self._redirect(returnUrl);
+ cancel: function (event) {
+ if (event && !$(event.target).hasClass('action-close')) {
59
+ self._redirect(returnUrl);
60
+ }
61
}
62
63
});
-
- return false;
64
+ } else {
65
+ this._redirect(returnUrl, originalForm);
66
- this._redirect(returnUrl, originalForm);
67
68
}, this));
69
},
70
0 commit comments