Skip to content

Commit 24e93e1

Browse files
committed
Bugfix: "value" was ignored in textarea fields
Fix the form component. Signed-off-by: Frank Endres <[email protected]>
1 parent 8a6c3d2 commit 24e93e1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sqlpage/templates/form.handlebars

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@
3939
{{~#if maxlength}}maxlength="{{maxlength}}" {{/if~}}
4040
{{~#if required}}required="required" {{/if~}}
4141
{{~#if autofocus}}autofocus {{/if~}}
42-
></textarea>
42+
>
43+
{{~#if value}}{{value}}{{/if~}}
44+
</textarea>
4345
{{else}}{{#if (eq type 'select')}}
4446
<select name="{{name}}" class="form-select"
4547
{{~#if required}} required="required" {{/if~}}

0 commit comments

Comments
 (0)