Skip to content

Set up the limit for the max number of column field & max number of row field can be added to table block of gutenberg #44808

Open

Description

Description

During QA of beta version I found below issue, can you please have a look if possible

Right now there is no maximum number limit set up for the table block of Gutenberg.

User can add any number of rows & columns to the table block which is breaking the backend of WordPress.

I believe, nobody will add that kind of inputs there but we can add those validations for better usability.

I have checked above issue over the WordPress Version 6.0.2, Version 6.1 (Beta 3)

Step-by-step reproduction instructions

  1. Go to WordPress Guttenberg editor for any existing page
  2. Add an element for the Table
  3. You will find an option to add Column Count & Row Count
  4. If you add more than 100 number for any of "Column count / Row count" , it will accept it and break the backend page

Screenshots, screen recording, code snippet

Screenshot 2022-10-10 112848

Environment info

No response

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions