Skip to content

Comments

Add type="button" to clear buttons of components#599

Merged
rzueger merged 1 commit intodevelopfrom
pr/clear-buttons
Feb 17, 2026
Merged

Add type="button" to clear buttons of components#599
rzueger merged 1 commit intodevelopfrom
pr/clear-buttons

Conversation

@rzueger
Copy link
Member

@rzueger rzueger commented Feb 17, 2026

Without this, the default type of the buttons is submit which can cause weird behaviors if enter is hit somewhere in the form (in this case the browser looks for the first submit button in the form and if it was a clear button, the field was being cleared - which of course didn't make sense)

Without this, the default type of the buttons is `submit` which can
cause weird behaviors if enter is hit somewhere in the form (in this
case the browser looks for the first submit button in the form and if
it was a clear button, the field was being cleared - which of course
didn't make sense)
@rzueger rzueger merged commit 35f87b9 into develop Feb 17, 2026
2 checks passed
@rzueger rzueger deleted the pr/clear-buttons branch February 17, 2026 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant