Skip to content

Commit

Permalink
refactor: not providing an empty option on hidden label
Browse files Browse the repository at this point in the history
  • Loading branch information
mfranzke committed Dec 4, 2023
1 parent c184ecf commit a9ce252
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/_patterns/01-elements/select/select.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{{#if required}} required{{/if}}
{{#if invalid }} aria-invalid="{{ invalid }}" {{/if }}
{{#if variant}} data-variant="{{variant}}"{{/if }}>
{{#if optgroup}}<optgroup label="Devices">{{else}}{{#unless multiple}}<option></option>{{/unless}}{{/if }}
{{#if optgroup}}<optgroup label="Devices">{{else}}{{#unless multiple}}{{#unless labelHidden}}<option></option>{{/unless}}{{/unless}}{{/if }}
<option value="smartphone">Smartphone</option>
<option value="softphone">Softphone</option>
<option value="headset">Headset</option>
Expand Down

0 comments on commit a9ce252

Please sign in to comment.