Minimal reproducable example
When hitting enter, the next rendered component didn't get highlighted correctly
@using Spectre.Console
@if (showA)
{
<p>a</p>
<RazorConsole.Components.TextButton
Content="A"
OnClick="() => showA = false"
BackgroundColor="@Color.Blue"
FocusedColor="@Color.Cyan1" />
}
@if (!showA)
{
<RazorConsole.Components.TextButton Content="B"
OnClick="() => showA = true"
BackgroundColor="@Color.Aqua"
FocusedColor="@Color.HotPink" />
}
@code {
private Dictionary<string, object> attributeA = new Dictionary<string, object>
{
{"key", "a"}
};
private bool showA = false;
}