Skip to content

Commit f5adac6

Browse files
committed
refactor: 内置 SortableList 行键值逻辑向下兼容
1 parent 4ab3986 commit f5adac6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BootstrapBlazor/Components/Table/Table.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1690,7 +1690,7 @@ private void OnTouchEnd()
16901690
TouchStart = false;
16911691
}
16921692

1693-
private object? GetKeyByITem(TItem item) => OnGetRowKey?.Invoke(item);
1693+
private object? GetKeyByITem(TItem item) => SortableList != null ? item : OnGetRowKey?.Invoke(item);
16941694

16951695
/// <summary>
16961696
/// Dispose 方法

0 commit comments

Comments
 (0)