Skip to content

Commit

Permalink
#744 [HxTooltip] Empty Text property - repro test
Browse files Browse the repository at this point in the history
  • Loading branch information
hakenr committed Nov 12, 2024
1 parent 2b92cc6 commit 79f0524
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
@page "/HxTooltip_SettingEmptyTextShouldNotFail"
@rendermode InteractiveWebAssembly

<HxSwitch Text="Toggle me?" @bind-Value="isChecked" />

@{
var tooltip = "";
if (isChecked)
{
tooltip = "Checked";
}
<HxTooltip Html="true" Text="@(tooltip)">
<div>
Hover over me to see the tooltip.
</div>
</HxTooltip>
}

@code {
bool isChecked = false;
}

0 comments on commit 79f0524

Please sign in to comment.