Automattic / Automattic/crowdsignal-forms

Crowdsignal blocks don't undo

Open
#166 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
PHP
Stars
15
Forks
10
Avg merge
13m
Merged PRs (30d)
1

Description

If you add a Crowdsignal block and then immediately press undo, the block isn't removed. Instead it takes 5 or 6 undos before it disappears.

I suspect that internally it is creating several invisible undo events, maybe as a result of successive `setAttributes`.

Tested with latest version on wp.com

Contributor guide

No contributing guide indexed for this repository

Research direction

No file or test is named; start by reproducing the issue with a Crowdsignal block and inspect the block's undo behavior around the successive `setAttributes` calls mentioned in the report. Done means adding the block and pressing undo once removes it completely, without requiring repeated undos.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.