Skip to content

[Table block] Insert Row function broken when no body rows are present and header is activated #45526

Open

Description

Description

Discovered in this support forum https://wordpress.org/support/topic/table-block-variation-with-header-section-activated/#post-16161912

"Insert Row" function broken when no body rows are present and header is activated.

Step-by-step reproduction instructions

  1. Insert a Table block
  2. Add a header section and some body rows
  3. Then delete all of the body rows
  4. Then attempt to insert body rows again

Result: greyed out menu items, unable to add rows
Expected: Row to appear after selecting insert row

Screenshots, screen recording, code snippet

No response

Environment info

WP 6.0.3
Chrome
Windows 10
PHP 7.4.28

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Needs TestingNeeds further testing to be confirmed.[Block] TableAffects the Table Block[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