fix display of checkboxes in promoted attributes, closes #1313

This commit is contained in:
zadam 2020-10-19 20:22:30 +02:00
parent b990239219
commit fd2d49de4f

View file

@ -173,6 +173,9 @@ export default class PromotedAttributesWidget extends TabAwareWidget {
}
else if (definition.labelType === 'boolean') {
$input.prop("type", "checkbox");
// hack, without this the checkbox is invisible
// we should be using a different bootstrap structure for checkboxes
$input.css('width', '80px');
if (valueAttr.value === "true") {
$input.prop("checked", "checked");