Skip to content

Commit 501ce2c

Browse files
authored
feat(DockView): not rend ChildContent when visible is false (#883)
* feat(DockView): not rend ChildContent when visible is false * chore: bump version 10.0.2
1 parent 54ce8d4 commit 501ce2c

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

src/components/BootstrapBlazor.DockView/BootstrapBlazor.DockView.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.1</Version>
4+
<Version>10.0.2</Version>
55
</PropertyGroup>
66

77
<PropertyGroup>

src/components/BootstrapBlazor.DockView/Components/DockViewComponent.razor

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@inherits DockViewComponentBase
1+
@inherits DockViewComponentBase
22

33
<div id="@Id" class="bb-dockview-panel" data-bb-key="@Key" data-bb-title="@Title">
44
@if (TitleTemplate != null)
@@ -11,5 +11,8 @@
1111
{
1212
<DockViewTitleBar BarIcon="@TitleBarIcon" BarIconUrl="@TitleBarIconUrl" OnClickBarCallback="OnClickBar"></DockViewTitleBar>
1313
}
14-
@ChildContent
14+
@if (Visible)
15+
{
16+
@ChildContent
17+
}
1518
</div>

0 commit comments

Comments
 (0)