Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    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:

    Code:
    isc.DynamicForm.create({
        fields: [
            {name: "checkbox", title: "Checkbox", type: "checkbox", value: false},
        ]
    });
    Can you confirm this is a bug and fix it ASAP?

    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:
    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;
            }
    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.

    Thanks in advance
    Gil

    #2
    Apologies - this was a recent regression and has been fixed for tomorrow's builds.

    Comment

    Working...
    X