ModalOptions, DropdownDemo bugfix

features/rewrite/fix_14032023
markosteger 2 years ago
parent 7d7c47a19a
commit 8733157473

@ -4,7 +4,7 @@
@using Connected.Components;
<Dropdown Items=@Items ItemToKey=@((e) => e.Value.ToString()) @bind-SelectedItems="@SelectedItems" AllowMultiple=true>
<Dropdown Items=@Items @bind-SelectedItems="@SelectedItems" AllowMultiple=true>
<OptionTemplate>
@context.Name
</OptionTemplate>

@ -18,12 +18,14 @@ public class ModalOptions
DisableBackdropClick = options.DisableBackdropClick;
NoHeader = options.NoHeader;
DisableEscKey = options.DisableEscKey;
Type = options.Type;
}
public ModalOptions(bool disableEscKey, bool disableBackdropClick, bool noHeader)
public ModalOptions(bool disableEscKey=false, bool disableBackdropClick=false, bool noHeader=false, ModalType type=ModalType.Default)
{
DisableEscKey = disableEscKey;
DisableBackdropClick = disableBackdropClick;
NoHeader = noHeader;
Type = type;
}
}

Loading…
Cancel
Save