GrapesJS / components-forms

Set of form components and blocks for the GrapesJS editor
BSD 3-Clause "New" or "Revised" License
70 stars 58 forks source link

Default Form Method is misleading #4

Closed benschiefer closed 5 years ago

benschiefer commented 6 years ago

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