Skip to content

Commit

Permalink
πŸ› fix(PageContainer): @page initializes multiple times in some cases (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
capdiem authored Mar 27, 2023
1 parent c76d0e9 commit e7651a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Masa.Blazor/Presets/PageTabs/PPageContainer.razor
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<MWindow Class="@CssProvider.GetClass()" Style="@CssProvider.GetStyle()" Value="@_currentPatternPath?.Pattern">
@foreach (var path in PatternPaths)
{
<MWindowItem Transition="" Style="height: 100%" Value="@path.Pattern" @key="path">
<PPageContainerItem Value="@path.IsSelf">
<MWindowItem Transition="" Style="height: 100%" Value="@path.Pattern" @key="path.Pattern">
<PPageContainerItem Value="@(path.Pattern == GetCurrentPatternPath().Pattern)">
@ChildContent
</PPageContainerItem>
</MWindowItem>
Expand Down

0 comments on commit e7651a6

Please sign in to comment.