Skip to content

IconButton is of type submit by default #3730

@GlebIrovich

Description

@GlebIrovich

Description

IconButton has a default type of submit which leads to unexpected behavior when placed within a form.

Slack thread

Steps to reproduce

Steps to reproduce
Create page with the following form:

<form>
<IconButton type="submit">
<IconButton/>
</form>

The second button will default to type=submit instead of type=button. Expected behavior would be that the second IconButton type would default to button.

Version

v35.28.0

Browser

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcomponent: ButtonIssues related to the Button componentreact

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions