Skip to content

ListSetting has inconsistent options behavior #151

@qqrz997

Description

@qqrz997

when using a list-setting:

<list-setting text=" " options="EnumTypeOptions" />

versus using a dropdown-list-setting:

<dropdown-list-setting text=" " options="EnumTypeOptions" />

with the following on a view controller:

public Array EnumTypeOptions { get; } = Enum.GetValues(typeof(EnumType));

and example enum:

public enum EnumType
{
    None,
    Some,
    Many
}

the problem with this is that the initial value for the list setting will be 10 instead of the default which you would expect to be None. when using the dropdown list setting, the default value will be None which raises the question of is the list setting not setting the correct default value?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions