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 efba444 commit 01e21c1Copy full SHA for 01e21c1
app/code/Magento/Paypal/view/frontend/web/js/view/payment/method-renderer/iframe-methods.js
@@ -28,8 +28,14 @@ define(
28
* Places order in pending payment status.
29
*/
30
placePendingPaymentOrder: function () {
31
- this.placeOrder(false);
32
- this.isInAction(true);
+ if (this.placeOrder()) {
+ this.isInAction(true);
33
+ // capture all click events
34
+ document.addEventListener('click', function(event) {
35
+ event.stopImmediatePropagation();
36
+ event.preventDefault();
37
+ }, true);
38
+ }
39
}
40
});
41
0 commit comments