When tab switches between two similar pages, some bugs appear.
foreach (var team in editteamlist)
{
<RadzenTabsItem Text=@(team.Name + " 队伍")>
<RadzenButton Icon="close" Text="关闭" Click="@(args =>oncloseteam(team))" ButtonStyle="ButtonStyle.Danger" Style="width:100%; margin-top:2px"></RadzenButton>
<TeamEditer Team="@team"></TeamEditer>
</RadzenTabsItem>
}
If I show it all at once, it won't be normal
foreach (var team in editteamlist)
{
<RadzenButton Icon="close" Text="关闭" Click="@(args =>oncloseteam(team))" ButtonStyle="ButtonStyle.Danger" Style="width:100%; margin-top:2px"></RadzenButton>
<TeamEditer Team="@team"></TeamEditer>
}
TeamEditor is my commponent
There has been a similar situation in <input> before, so I doubt that this may be the blazor bug
The picture will be more difficult to describe the problem I encountered, so I uploaded a video
This problem is very troublesome(