Skip to content

Use of some components within a form causes undesired behaviour #2068

@Pytal

Description

@Pytal

When using a component containing a button element such as the Actions or ActionButton component inside a form, clicking/activating the component results in the form being submitted and the page refreshing. This is undesirable and unintuitive behaviour with the use of components as an abstraction layer as form submission may be handled more explicitly. A potential solution would be to add type="button" to all button elements, though this may be a breaking change.

MDN documentation

Metadata

Metadata

Assignees

Labels

3. to reviewWaiting for reviewsbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions