1
0
Fork 0

DEV: checkbox value should default to false

Dieser Commit ist enthalten in:
Faizaan Gagan 2021-04-29 11:02:51 +05:30
Ursprung f05d859007
Commit 8aafb257fd

Datei anzeigen

@ -57,6 +57,12 @@ export default {
]; ];
FieldModel.reopen({ FieldModel.reopen({
init() {
this._super(...arguments);
if (this.type === "checkbox") {
this.set("value", this.value || false);
}
},
check() { check() {
if (this.customCheck) { if (this.customCheck) {
return this.customCheck(); return this.customCheck();