Skip to content

Default Form Method is misleading #4

@benschiefer

Description

@benschiefer

When dragging a form onto the canvas, it does not set the "method" attribute in the markup (which is fine). However, the default "method" for a form is "GET" according to the HTML spec.

If you select the form block that you dragged onto the canvas and look at the component settings, the UI makes it look like the user has the "POST" method selected, since it is the first element in the select.

Recommendation: make the "GET" option the first element in the select so that it matches the default form behavior.

https://github.com/artf/grapesjs-plugin-forms/blob/master/src/components.js#L76

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