adjustment

This commit is contained in:
2024-01-19 15:47:42 +08:00
parent feec8b59a7
commit 3d9c5bd3f2
9 changed files with 63 additions and 54 deletions

View File

@ -22,7 +22,7 @@ function fillCheckbox(container, type = 'fa-regular', label, tabindex = -1, char
);
if (label instanceof Element) {
container.appendChild(label);
} else if (label?.length > 0) {
} else if (label != null && String(label).length > 0) {
container.appendChild(
createElement('span', span => span.innerText = label)
);