Skip to content

Commit a2fcc46

Browse files
authored
Merge pull request #580 from andrewsinnovations/main
Fix textarea and select components ignoring class attribute
2 parents 35d729b + 9896c91 commit a2fcc46

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sqlpage/templates/form.handlebars

+3-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
{{#if (eq type 'textarea')}}
4747
<textarea
4848
name="{{name}}"
49-
class="form-control"
49+
class="form-control {{class}}"
5050
placeholder="{{placeholder}}"
5151
rows="{{default rows 3}}"
5252
{{#if id}}id="{{id}}" {{/if~}}
@@ -61,7 +61,8 @@
6161
{{~#if value includeZero=true}}{{value}}{{/if~}}
6262
</textarea>
6363
{{else}}{{#if (eq type 'select')}}
64-
<select name="{{name}}" class="form-select"
64+
<select name="{{name}}"
65+
class="form-select {{class}}"
6566
{{~#if id}} id="{{id}}" {{/if~}}
6667
{{~#if required}} required="required" {{/if~}}
6768
{{~#if autofocus}} autofocus {{/if~}}

0 commit comments

Comments
 (0)