Skip to content

PayPal overlay persists after action.reject() #3367

@ayubov

Description

@ayubov

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

  1. Open PayPal popup
  2. Call actions.reject() inside onSubmit callback
  3. Observe that the PayPal popup closes, but its overlay remains in the DOM

Expected behavior
Overlay should disappear when popup is closing

Screenshots

Image

Desktop (please complete the following information):

  • Browser Chrome

Additional context
Reproducible with the latest adyen-web version

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions