From 8733157473a2c56d6250ba0f70d6900b5338c8ec Mon Sep 17 00:00:00 2001 From: markosteger Date: Thu, 16 Mar 2023 14:21:33 +0100 Subject: [PATCH] ModalOptions, DropdownDemo bugfix --- .../Pages/DropdownDemo.razor | 2 +- src/Connected.Components/Models/Modal/ModalOptions.cs | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Connected.Components.Showcase.Runner/Pages/DropdownDemo.razor b/src/Connected.Components.Showcase.Runner/Pages/DropdownDemo.razor index c06ae02..0837d33 100644 --- a/src/Connected.Components.Showcase.Runner/Pages/DropdownDemo.razor +++ b/src/Connected.Components.Showcase.Runner/Pages/DropdownDemo.razor @@ -4,7 +4,7 @@ @using Connected.Components; - e.Value.ToString()) @bind-SelectedItems="@SelectedItems" AllowMultiple=true> + @context.Name diff --git a/src/Connected.Components/Models/Modal/ModalOptions.cs b/src/Connected.Components/Models/Modal/ModalOptions.cs index d92bfc6..405072d 100644 --- a/src/Connected.Components/Models/Modal/ModalOptions.cs +++ b/src/Connected.Components/Models/Modal/ModalOptions.cs @@ -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; } }