Skip to content

Commit e7aa481

Browse files
authored
fix(NullSwitch): prevent trigger OnValueChagned first render (#7226)
* fix(Switch): remove assign value * doc: update encode * chore: bump version 10.1.0
1 parent 7198317 commit e7aa481

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/BootstrapBlazor/BootstrapBlazor.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Razor">
22

33
<PropertyGroup>
4-
<Version>10.0.2-beta01</Version>
4+
<Version>10.1.0</Version>
55
</PropertyGroup>
66

77
<ItemGroup>

src/BootstrapBlazor/Components/Switch/NullSwitch.razor.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Licensed to the .NET Foundation under one or more agreements.
1+
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the Apache 2.0 License
33
// See the LICENSE file in the project root for more information.
44
// Maintainer: Argo Zhang([email protected]) Website: https://www.blazor.zone
@@ -127,7 +127,6 @@ protected override void OnInitialized()
127127

128128
OnInnerText ??= Localizer[nameof(OnInnerText)];
129129
OffInnerText ??= Localizer[nameof(OffInnerText)];
130-
CurrentValue ??= DefaultValueWhenNull;
131130
}
132131

133132
/// <summary>

0 commit comments

Comments
 (0)