mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-11-24 03:04:51 +00:00
Make failing tests pass
This commit is contained in:
@@ -115,6 +115,11 @@ CheckboxWidget.prototype.getValue = function() {
|
||||
if(this.checkboxUnchecked && !this.checkboxChecked) {
|
||||
return true; // Absence of unchecked value
|
||||
}
|
||||
if(this.checkboxChecked && this.checkboxUnchecked) {
|
||||
return undefined; // Will be rendered as indeterminate
|
||||
}
|
||||
// Neither specified, so empty list is false, non-empty is true
|
||||
return !!list.length;
|
||||
}
|
||||
} else {
|
||||
if(this.checkboxTag) {
|
||||
|
||||
Reference in New Issue
Block a user