Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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>10.2.3-beta01</Version>
<Version>10.2.3-beta02</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ public partial class EditorForm<TModel> : IShowLabel, IDisposable

private IEnumerable<KeyValuePair<string, IOrderedEnumerable<IEditorItem>>> GroupItems => RenderItems
.Where(i => !string.IsNullOrEmpty(i.GroupName) && i.IsVisible(ItemChangedType, IsSearch.Value))
.GroupBy(i => i.GroupOrder).OrderBy(i => i.Key)
.GroupBy(i => i.GroupName).OrderBy(i => i.Key)
.Select(i => new KeyValuePair<string, IOrderedEnumerable<IEditorItem>>(i.First().GroupName!, i.OrderBy(x => x.Order)));
Comment on lines +220 to 221
Copy link

Copilot AI Jan 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fix correctly changes the grouping from GroupOrder to GroupName, which resolves the issue where items with different GroupNames were being merged. However, groups are now ordered alphabetically by GroupName (the Key) instead of numerically by GroupOrder. This means the GroupOrder property is no longer respected for determining the display order of groups. Consider changing the ordering to respect GroupOrder while maintaining the GroupName grouping. The correct implementation should order groups by their GroupOrder value, not by their name.

Suggested change
.GroupBy(i => i.GroupName).OrderBy(i => i.Key)
.Select(i => new KeyValuePair<string, IOrderedEnumerable<IEditorItem>>(i.First().GroupName!, i.OrderBy(x => x.Order)));
.GroupBy(i => i.GroupName).OrderBy(g => g.Min(x => x.GroupOrder))
.Select(g => new KeyValuePair<string, IOrderedEnumerable<IEditorItem>>(g.First().GroupName!, g.OrderBy(x => x.Order)));

Copilot uses AI. Check for mistakes.

private List<IEditorItem>? _itemsCache;
Expand Down
Loading