question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Overlay does not stay when returning a promise

See original GitHub issue

In checkout.js, returning a non-resolving promise would keep the overlay around. This was useful for merchants that do a redirect so that the background was not functional while the browser was performing the redirect. I cannot get this to work in the new payments SDK.

onApprove: function(data, actions) {
                    actions.redirect('http://www.google.com');
                    
                    return new Promise(function (resolve, reject) {} );
                },
onApprove: function(data, actions) {
                    return actions.redirect('http://www.google.com');
                },

https://youtu.be/-ovTDmvu_D4

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
gregjopacommented, Feb 10, 2021

Bump

0reactions
github-actions[bot]commented, May 18, 2022

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ionic 5 Angular LoadingController Uncaught (in promise)
Uncaught (in promise): overlay does not exist is a very generic error and can appear in multiple situations. In general, it occurs when ......
Read more >
Promise.any() - JavaScript - MDN Web Docs
This returned promise fulfills when any of the input's promises fulfills, with this first fulfillment value. It rejects when all of the input's...
Read more >
Tutorial: Usage - Documentation - Shepherd JS
If true, the overlay will create an opening around the target element so that it can remain interactive. Tour Methods. addStep(options) : Creates...
Read more >
overlay.html.Hint. Developer's guide - Yandex
Returns a shape that defines the area spanning the overlay in global pixel coordinates, or null if it is not possible to plot...
Read more >
PlainOverlay - Component Kitchen
Overlay component in the Plain reference design system ... backdrop : the backdrop behind the overlay, default type is Backdrop; frame : the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found