Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Payment Buttons Block: Undo button will not remove the block #37187

Open
coder-karen opened this issue May 2, 2024 · 0 comments
Open

Payment Buttons Block: Undo button will not remove the block #37187

coder-karen opened this issue May 2, 2024 · 0 comments
Labels

Comments

@coder-karen
Copy link
Contributor

What is the issue

On a self-hosted site using the Jetpack plugin, once a Payment Buttons block is added to a post or page it isn't possible to remove it with the undo button. With most other blocks, after adding the block and making none or a few changes, clicking the undo button will undo any changes and then remove the block (as a demo you can try with the Business Hours block).

To reproduce:

  • Create a new post or edit a template in the Site editor
  • Add the Payment Buttons block
  • Click undo
  • Verify the block is not removed

Demo:

Screen.Recording.2024-05-02.at.16.25.37.mov

Likely next steps

The issue is most likely due to attributes that are being set on first mount, likely within a useEffect. This was the case for the Contact Form Block - #36485 - and Donations Block - #37185

@coder-karen coder-karen changed the title Payment Buttons: Undo button will not remove the block Payment Buttons Block: Undo button will not remove the block May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant