Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/BootstrapBlazor/BootstrapBlazor.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">

<PropertyGroup>
<Version>9.1.3-beta07</Version>
<Version>9.1.3</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
43 changes: 20 additions & 23 deletions src/BootstrapBlazor/Components/Dropdown/Dropdown.razor
Original file line number Diff line number Diff line change
Expand Up @@ -22,31 +22,28 @@
{
<button type="button" class="@ClassName" data-bs-toggle="@ToggleString" disabled="@Disabled" aria-haspopup="true" aria-expanded="false"></button>
}
@if (!IsDisabled)
{
<div class="@MenuAlignmentClass">
@if (ItemsTemplate == null)
<div class="@MenuAlignmentClass">
@if (ItemsTemplate == null)
{
@foreach (var item in GetItems())
{
@foreach (var item in GetItems())
if (ItemTemplate != null)
{
if (ItemTemplate != null)
{
@ItemTemplate.Invoke(item)
}
else if (item.IsDisabled)
{
<div class="@ActiveItem(item)">@item.Text</div>
}
else
{
<div class="@ActiveItem(item)" @onclick="e => OnItemClick(item)">@item.Text</div>
}
@ItemTemplate.Invoke(item)
}
else if (item.IsDisabled)
{
<div class="@ActiveItem(item)">@item.Text</div>
}
else
{
<div class="@ActiveItem(item)" @onclick="e => OnItemClick(item)">@item.Text</div>
}
}
else
{
@ItemsTemplate
}
</div>
}
}
else
{
@ItemsTemplate
}
</div>
</div>
Loading