DynamicForm.setDisabled(false) 无法完全正常工作

DynamicForm.setDisabled(false) not working entirely

首先让我说我是 Isomorphic 框架的新手,所以请多多包涵。

我在创建时禁用 "the form"。然后,一旦用户单击 "the button",它就应该启用它。我遇到的问题是它只启用 TextItems,而不是 Section 标题或 ButtonItems。我错过了什么?

表格

isc.DynamicForm.create({
    ID: "formSelectedUser",
    width: 540,
    numCols: 4,
    disabled: true,
    fields: [
        {
            defaultValue: "General Information", type: "section", sectionExpanded: true,
            itemIds: ["tbFirstName", "tbLastName", "tbEmailAddress", "tbUserName", "tbParentClient"]
        },
        { name: "tbFirstName", type: "text", title: "First Name" },
        { name: "tbLastName", type: "text", title: "Last Name" },
        { name: "tbEmailAddress", type: "text", title: "Email Address" },
        { name: "tbUserName", type: "text", title: "Username" },
        { name: "tbParentClient", type: "select", title: "Parent Client", defaultValue: "N/A" },
        {
            defaultValue: "Password Information", type: "section", sectionExpanded: true,
            itemIds: ["tbCurrentPassword", "tbNewPasswordAttemptOne", "tbNewPasswordAttemptTwo", "btnUpdatePassword"]
        },
        { name: "tbNewPasswordAttemptOne", type: "password", title: "New Password" },
        { name: "tbNewPasswordAttemptTwo", type: "password", title: "Confirm Password" },
        { name: "tbCurrentPassword", type: "password", title: "Current Password" },
        { type: "SpacerItem", colSpan: 1 },
        {
            name: "btnUpdatePassword", type: "ButtonItem", title: "Update Password", width: 146, endRow: false, startRow: false, click: function () {
                console.log("user wants to change password..");
            }
        }
    ]
});

按钮

isc.Button.create({
    name: "submit",
    type: "button",
    width: 140,
    title: "Submit",
    layoutAlign: "center",
    click: function () {
        formSelectedUser.setDisabled(false);
    }
});

嗯,这似乎是一个错误。实际上我从来没有在 DynamicForm 上使用过 setDisabled,通常我使用 setCanEdit,它也适用于部分和按钮。它也适用于您的用例吗?