Skip to content

Bug: Table pagination buttons trigger form submission #695

@thgaskell

Description

@thgaskell

Bug Description

When a Table component with pagination controls is rendered inside of a form, clicking on the buttons triggers the form to be submitted because the buttons do not explicitly set type="button".

Steps to Reproduce

  1. Render a Table component inside of a form with handleSubmit configured.
  2. Configure Table paginationOptions so that the pagination buttons render.
  3. Click on pagination buttons.

Expected Behavior

The form should not submit and the Table pagination options should still function.

Screenshots

No response

System Information

No response

Additional Information

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions