Skip to content

Commit 6b16966

Browse files
authored
fix(Drawer): missing position variable (#6906)
* refactor: 增加判断条件 * chore: bump version 9.11.2
1 parent 1c91fa8 commit 6b16966

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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>9.11.2-beta07</Version>
4+
<Version>9.11.2</Version>
55
</PropertyGroup>
66

77
<ItemGroup>

src/BootstrapBlazor/Components/Drawer/Drawer.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public partial class Drawer
1919
.Build();
2020

2121
private string? StyleString => CssBuilder.Default()
22-
.AddClass($"--bb-drawer-position: {Position};")
22+
.AddClass($"--bb-drawer-position: {Position};", !string.IsNullOrEmpty(Position))
2323
.AddClass($"--bb-drawer-zindex: {ZIndex};", ZIndex.HasValue)
2424
.AddStyleFromAttributes(AdditionalAttributes)
2525
.Build();

0 commit comments

Comments
 (0)