Skip to content

Conversation

@theoholl
Copy link
Contributor

@theoholl theoholl commented Feb 12, 2026

Summary

The form for changing the board color and name has 2 buttons, one to cancel the changes and one to save them. Because both buttons are of native-type="submit" and the cancel button comes first, color and name changes are discarded when the input field is submitted via enter key.

Per the HTML spec, when you press Enter in a text field, the browser implicitly submits the form by firing a synthetic click event on the form's first submit button.

This PR changes the button type of the button with the cancel action to button instead of submit. Now, when the changes are submitted, e.g. via enter key press, the changes are getting saved correctly.

Screencast.Fix.mp4

Signed-off-by: Theo <36564257+theoholl@users.noreply.github.com>
@theoholl theoholl changed the title Change button type for cancel action from submit to button Submit changes to board color and name on enter key press Feb 12, 2026
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.

Bug when renaming and / or choosing another color for the board

1 participant