Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Pytal opened this issue Jun 26, 2021 · 0 comments · Fixed by #2069
Closed

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

Pytal opened this issue Jun 26, 2021 · 0 comments · Fixed by #2069
Assignees
Labels
3. to review Waiting for reviews bug Something isn't working

Comments

@Pytal
Copy link
Contributor

Pytal commented Jun 26, 2021

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

@Pytal Pytal self-assigned this Jun 26, 2021
@Pytal Pytal added bug Something isn't working 3. to review Waiting for reviews labels Jun 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant