Announcement
Collapse
No announcement yet.
X
-
Apologies - this was a recent regression and has been fixed for tomorrow's builds.
-
CheckboxItem appears checked when initial value is false
Hello Isomorphic,
After upgrading to the latest 13.0p build, I encounter a problem with checkboxes which appear checked when their initial value is et to false.
I was able to reproduce this problem with the following very simple showcase example - running it displays a checked checkbox:
Can you confirm this is a bug and fix it ASAP?Code:isc.DynamicForm.create({ fields: [ {name: "checkbox", title: "Checkbox", type: "checkbox", value: false}, ] });
If it helps, I was also able to identify what I think is the culprit code which I really can't make sense of - it's in Checkboxitem.js method _mapValue line 621:
I really can't make sense out of that else block... It wasn't there in the build form January which we were using before this upgrade.Code:var map = this.getValueMap(); if (!isc.isAn.Array(map) && isc.isAn.Object(map)) value = map[value]; else if (this.value != null) { value = this.value == value; }
Thanks in advance
GilTags: None
Leave a comment: