Skip to content

Commit

Permalink
Merge pull request #9 from ayush2k/bugfix/undefined-value
Browse files Browse the repository at this point in the history
Handles null value
  • Loading branch information
scottnath authored Jul 13, 2016
2 parents a9a9751 + 54023fe commit 7fc9472
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@ module.exports = {
},
},
},
html: '{% for option in checkbox.options %}<label for="{{checkbox.id}}--{{loop.index}}"><input type="{{checkbox.type}}" name="{{checkbox.name}}" id="{{checkbox.id}}--{{loop.index}}" value="{{option.value}}" {% if option.value in checkbox.value %}checked{% endif %}>{{option.label}}</label>{% endfor %}',
html: '{% for option in checkbox.options %}<label for="{{checkbox.id}}--{{loop.index}}"><input type="{{checkbox.type}}" name="{{checkbox.name}}" id="{{checkbox.id}}--{{loop.index}}" value="{{option.value}}" {% if checkbox.value %}{% if option.value == checkbox.value %}checked{% endif %}{% endif %}>{{option.label}}</label>{% endfor %}',
};

0 comments on commit 7fc9472

Please sign in to comment.