Make class attribute optional when empty

Change-Id: I5a9d81f650dfa4178e7b1e4e835ef5efb5acacf0
This commit is contained in:
Volker E 2020-05-17 17:37:57 -07:00
parent 6ac9079202
commit eabfe6d16e
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
{{!
See @typedef MenuDefinition
}}
<div id="{{id}}" class="{{class}}" aria-labelledby="{{label-id}}" {{{html-tooltip}}}
<div id="{{id}}" {{#class}}class="{{.}}"{{/class}} aria-labelledby="{{label-id}}" {{{html-tooltip}}}
{{{html-userlangattributes}}}>
{{#is-dropdown}}
<input type="checkbox" class="vectorMenuCheckbox" aria-labelledby="{{label-id}}" />