Skip to content

Feature request: ability to submit the form when pressing Enter while focused on any input within the form #1

Open
@morgoe

Description

@morgoe

Traditional HTML forms can be submitted at any time while filling out the form by simply pressing Enter. This is easy to do even in React by adding an onSubmit function to the form component and changing the primary button type to "submit". https://stackoverflow.com/questions/33211672/how-to-submit-a-form-using-enter-key-in-react-js

However since reacto-form uses a div instead of a form, we can't do this.

This is expected behaviour in a form, and is confusing to users when not adhered to. Can we add this in somehow?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions