Skip to content

combobox 中在items中设置selected会被defaultvalue覆盖 #651

@zhupeng0929

Description

@zhupeng0929

foreach (var item in listItems)
{
if (selectVal != null && selectVal.Count > 0)
{

     if (selectVal.Contains(item.Value?.ToString()))
     {
         item.Selected = true;
     }
     else
     {
         item.Selected = false;
     }
 }

}
原来selectVal 没有做判断,如果是items中设置了selected=true,这个地方还是会被覆盖为false

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions