Skip to content

Commit 8f058b9

Browse files
authored
Update form.handlebars
Add empty option to select
1 parent 0026610 commit 8f058b9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sqlpage/templates/form.handlebars

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
{{~#if placeholder}} placeholder="{{placeholder}}" {{/if~}}
7676
{{~#if create_new}} data-create_new={{create_new}} {{/if~}}
7777
>
78+
{{~#if emptyoption}}<option value=""></option>{{/if~}}
7879
{{#each (parse_json options)}}
7980
<option value="{{value}}" {{#if (or (eq ../value value) selected)}}selected{{/if}}>{{label}}</option>
8081
{{/each}}

0 commit comments

Comments
 (0)