Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DataTable have a validate bug #11

Open
mseaspring opened this issue Nov 25, 2024 · 0 comments
Open

DataTable have a validate bug #11

mseaspring opened this issue Nov 25, 2024 · 0 comments

Comments

@mseaspring
Copy link

First of all, thank you for developing such a great library. Secondly, it appears that I have found a bug. In the case of a DataTable, the last field of the first row cannot be validated and does not display a red frame. Although other cells do display a red frame, there are no prompts. The definition for creating the DataTable is as follows. Thank you.

  new FieldDefinition
    {
        Key = "k6",
        Type = "datatable",
        Prompt = "tab",
        Settings = new Dictionary<string, string> { { "isNeedButton", "true" } },
        Fields = new[]
        {
            new FieldDefinition
            {
                Key = "k61",
                Prompt = "name",
                Type = "string",
                Values = Array.Empty<string>(),
                Fields = Array.Empty<FieldDefinition>(),
                Checks = new CheckDefinition[]
                {
                    new CheckDefinition
                    {
                        Type = "required",
                        Settings = new Dictionary<string, string> { },
                    },
                },
            },
            new FieldDefinition
            {
                Key = "k62",
                Prompt = "age",
                Type = "string",
                Checks = new CheckDefinition[]
                {
                    new CheckDefinition
                    {
                        Type = "required",
                        Settings = new Dictionary<string, string> { },
                    }
                },
            },
        },
    },
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant