vitmalina / w2ui

UI widgets for modern apps. Data table, forms, toolbars, sidebar, tabs, tooltips, popups. All under 120kb (gzipped).
http://w2ui.com
MIT License
2.63k stars 735 forks source link

Form in a popup #2507

Closed GInHell closed 4 months ago

GInHell commented 4 months ago

Form in a popup:

When using the "formHTML" property, if there is a field with type textarea, other fields that are below this field and buttons do not appear on the form. https://jsfiddle.net/inhell/354kutfg/1/

image

Here, if the field type is replaced from textarea to input https://jsfiddle.net/inhell/ogj38tqf/

image

mpf82 commented 4 months ago

Not a w2ui issue. Textareas are not self-closing tags, please use <textarea name="comment"></textarea> (instead of <textarea name="comment" />).

https://jsfiddle.net/1Ldx7hwn/

grafik

GInHell commented 4 months ago

Exactly! I apologize for my inattention

mpf82 commented 4 months ago

@GInHell No need to apologize. By the way, the w2form "auto templates" can help you to avoid such issues, by generating the HTML for you based on the field type, see https://w2ui.com/web/demos/#/form/2