From fcd795be3d06087c8a15740e20fc5d2b2d38b45b Mon Sep 17 00:00:00 2001 From: Leigh Pointer Date: Sat, 13 Feb 2021 07:33:12 +0100 Subject: [PATCH] #1106 Fix issue where Section would not initialize collapsed. --- Oqtane.Client/Modules/Controls/Section.razor | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Oqtane.Client/Modules/Controls/Section.razor b/Oqtane.Client/Modules/Controls/Section.razor index 027b0e85..7f253cc2 100644 --- a/Oqtane.Client/Modules/Controls/Section.razor +++ b/Oqtane.Client/Modules/Controls/Section.razor @@ -16,13 +16,14 @@

-
+
@ChildContent
@code { private string _heading = string.Empty; private string _expanded = string.Empty; + private string _show = string.Empty; [Parameter] public RenderFragment ChildContent { get; set; } @@ -40,6 +41,7 @@ { _heading = (!string.IsNullOrEmpty(Heading)) ? Heading : Name; _expanded = (!string.IsNullOrEmpty(Expanded)) ? Expanded : "false"; + if (_expanded == "true") { _show = "show"; } } protected override void OnParametersSet()