fix(NullSwitch): prevent trigger OnValueChagned first render (#7226)

* fix(Switch): remove assign value

* doc: update encode

* chore: bump version 10.1.0
This commit is contained in:
Argo Zhang
2025-12-02 14:17:59 +08:00
committed by GitHub
parent 7198317312
commit e7aa481e1d
2 changed files with 2 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">
<PropertyGroup>
<Version>10.0.2-beta01</Version>
<Version>10.1.0</Version>
</PropertyGroup>
<ItemGroup>

View File

@@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the Apache 2.0 License
// See the LICENSE file in the project root for more information.
// Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone
@@ -127,7 +127,6 @@ public partial class NullSwitch
OnInnerText ??= Localizer[nameof(OnInnerText)];
OffInnerText ??= Localizer[nameof(OffInnerText)];
CurrentValue ??= DefaultValueWhenNull;
}
/// <summary>