We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3cc1dd5 commit 43e99d1Copy full SHA for 43e99d1
views/ButtonRadio.js
@@ -87,7 +87,7 @@ export default class ButtonRadio {
87
// Button bar
88
return m(`div#${id}.btn-group.btn-group-toggle${vertical ? '.btn-group-vertical' : ''}[role=group]`,
89
mergeAttributes({style: {'width': '100%'}}, attrsAll),
90
- sections.map(section =>
+ sections.filter(_=>_).map(section =>
91
// Individual buttons
92
m(`#${section.id || 'btn' + section.value}.btn.btn-secondary${
93
String(section.value).toLowerCase() === this.active.toLowerCase() ? '.active' : ''}`,
0 commit comments