Skip to content

Conversation

@olagjo
Copy link

@olagjo olagjo commented Mar 19, 2025

The default behavior of buttons without a type is "submit" when rendered inside a <form>. By setting the type to "button" we avoid an annoying bug where closing the search will actually submit the form you are working on.

I think this solves the same problem as #44, but with a smaller and more targeted change.
Fixes #37

The default behavior of buttons without a type is "submit" when rendered inside a `<form>`.
By setting the type to "button" we avoid an annoying bug where closing the search will actually _submit_ the form you are working on.
@olagjo olagjo closed this May 8, 2025
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.

issue in remove button

1 participant