Skip to content

Commit

Permalink
Merge pull request #66 from legalthings/show-empty-optiongroup
Browse files Browse the repository at this point in the history
Show option group label, even if there are no options
  • Loading branch information
jasny authored Jul 3, 2017
2 parents a87c29f + ac3feaa commit a9cf0aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/legalform.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function LegalForm($) {
if (mode === 'use') data.value = '{{ ' + data.name + ' }}';

input = buildFieldInput(data, mode);
if (!input) return null;
if (input === null) return null;

if (data.label) {
label = (mode === 'build' ? '<label>' : '<label for="' + data.id + '">') + data.label + '' + (data.required ? ' <span class="required">*</span>' : '') + '</label>';
Expand Down

0 comments on commit a9cf0aa

Please sign in to comment.