Skip to content

Widget Screen: Dirty state is not reset after saving #32074

Closed

Description

@Mamaduka

Description

When adding a new block, sometimes you have to save changes twice to clear unsaved changes.

Step-by-step reproduction instructions

  1. Go to the new widgets screen.
  2. Add a new block to a widget area.
  3. Save changes.
  4. See snackbar appear.
  5. "Update" button isn't disabled.

Expected behaviour

The "Update" button should be disabled after saving changes the first time.

Actual behaviour

Have to save changes twice to see a visual indication that they are saved.

Screenshots or screen recording (optional)

widget-screen-save-twice.mp4

WordPress information

  • WordPress version: 5.7.2
  • Gutenberg version: 10.7/trunk
  • Are all plugins except Gutenberg deactivated? Yes
  • Are you using a default theme (e.g. Twenty Twenty-One)? Yes

Activity

  1. added
    [Type] BugAn existing feature does not function as intended
    [Feature] Widgets ScreenThe block-based screen that replaced widgets.php.
    on May 21, 2021
  2. noisysocks commented on Jun 1, 2021

    @noisysocks
    Member

    Confirmed.

  3. changed the title [-]Widget Screen: Requires saving changes twice [/-] [+]Widget Screen: Dirty state is not reset after saving[/+] on Jun 1, 2021
  4. Mamaduka commented on Jun 1, 2021

    @Mamaduka
    MemberAuthor

    I will try to look into this issue later this week.

  5. noisysocks commented on Jun 3, 2021

    @noisysocks
    Member

    Related to this is that you see a "Are you sure?" prompt when you navigate away from the widgets screen after saving.

  6. self-assigned this
    on Jun 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

[Feature] Widgets ScreenThe block-based screen that replaced widgets.php.[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions