fix nav collapsed oninitialized

This commit is contained in:
zaccaria.majid
2022-11-02 15:56:51 +01:00
parent e1bdfe7c71
commit fbb5295b20
5 changed files with 9 additions and 5 deletions
+1 -1
View File
@@ -5,7 +5,7 @@
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<Platforms>AnyCPU;x86;x64</Platforms>
<Version>1.2.2211.214</Version>
<Version>1.2.2211.215</Version>
</PropertyGroup>
<ItemGroup>
+1 -1
View File
@@ -1,6 +1,6 @@
<body>
<i>MAPO-MONO</i>
<h4>Version: 1.2.2211.214</h4>
<h4>Version: 1.2.2211.215</h4>
<br /> Release Note:
<ul>
<li>
+1 -1
View File
@@ -1 +1 @@
1.2.2211.214
1.2.2211.215
+1 -1
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<item>
<version>1.2.2211.214</version>
<version>1.2.2211.215</version>
<url>http://nexus.steamware.net/repository/SWS/MP.MONO.UI/stable/LAST/MP.Mon.zip</url>
<changelog>http://nexus.steamware.net/repository/SWS/MP.MONO.UI/stable/LAST/ChangeLog.html</changelog>
<mandatory>false</mandatory>
+5 -1
View File
@@ -75,7 +75,7 @@
{
collapseNavMenu = !collapseNavMenu;
}
protected bool showText { get; set; } = true;
protected bool showText { get; set; } = false;
protected string hideText
{
get => showText ? "" : "invisible";
@@ -85,6 +85,10 @@
showText = !showText;
EC_compressUpdated.InvokeAsync(showText);
}
protected override async Task OnInitializedAsync()
{
await EC_compressUpdated.InvokeAsync(false);
}
[Parameter]
public EventCallback<bool> EC_compressUpdated { get; set; }
}