Skip to content

EuiForm should render to form #2272

@flash1293

Description

@flash1293

Currently the EuiForm component renders a div as container element. This is slightly confusing, I would have expected it to render an html <form> element, so onSubmit on EuiForm works:

<EuiForm onSubmit={sendToServer}>
   ...
   <EuiButton fill type="submit">Submit form</EuiButton>
</EuiForm>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions