Fix pre-selecting checkboxes in dialog
This commit is contained in:
parent
cb0765300b
commit
5b3d59e6e1
1 changed files with 6 additions and 0 deletions
|
|
@ -62,6 +62,12 @@
|
|||
Selected = false,
|
||||
DataItem = i
|
||||
});
|
||||
|
||||
// Sync the incoming Selected parameter with internal state.
|
||||
if (Selected != null)
|
||||
{
|
||||
SelectedKeys = Selected.Select(item => KeySelector.Invoke(item).ToString()).ToList();
|
||||
}
|
||||
}
|
||||
|
||||
async Task Select(CheckboxButtonGroupItem<TItem> item)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue