mirror of
https://github.com/zadam/trilium.git
synced 2024-11-11 01:23:57 +08:00
fix display of checkboxes in promoted attributes, closes #1313
This commit is contained in:
parent
b990239219
commit
fd2d49de4f
1 changed files with 3 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue