mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 09:58:32 +02:00
fix display of checkboxes in promoted attributes, closes #1313
This commit is contained in:
parent
b990239219
commit
fd2d49de4f
@ -173,6 +173,9 @@ export default class PromotedAttributesWidget extends TabAwareWidget {
|
|||||||
}
|
}
|
||||||
else if (definition.labelType === 'boolean') {
|
else if (definition.labelType === 'boolean') {
|
||||||
$input.prop("type", "checkbox");
|
$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") {
|
if (valueAttr.value === "true") {
|
||||||
$input.prop("checked", "checked");
|
$input.prop("checked", "checked");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user