Describe the bug
When a user clicks the PayPal button, we make an API call to our backend. If an error occurs, we invoke actions.reject() on the SubmitActions object within the onSubmit callback. While this correctly closes the PayPal popup, the corresponding overlay remains in the DOM.
To Reproduce
- Open PayPal popup
- Call
actions.reject() inside onSubmit callback
- Observe that the PayPal popup closes, but its overlay remains in the DOM
Expected behavior
Overlay should disappear when popup is closing
Screenshots
Desktop (please complete the following information):
Additional context
Reproducible with the latest adyen-web version
Describe the bug
When a user clicks the PayPal button, we make an API call to our backend. If an error occurs, we invoke
actions.reject()on theSubmitActionsobject within theonSubmitcallback. While this correctly closes the PayPal popup, the corresponding overlay remains in the DOM.To Reproduce
actions.reject()insideonSubmitcallbackExpected behavior
Overlay should disappear when popup is closing
Screenshots
Desktop (please complete the following information):
Additional context
Reproducible with the latest adyen-web version