From 09455df61c6fae15d0740a5c131433c4be9275e4 Mon Sep 17 00:00:00 2001 From: Ylin Date: Mon, 2 Dec 2024 11:28:16 +0800 Subject: [PATCH] table: Fix disabled sort field change to default (#451) Co-authored-by: linxin --- crates/ui/src/table.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/ui/src/table.rs b/crates/ui/src/table.rs index e6614a5f..6848e42b 100644 --- a/crates/ui/src/table.rs +++ b/crates/ui/src/table.rs @@ -535,7 +535,9 @@ where if ix == col_ix { col_group.sort = Some(sort); } else { - col_group.sort = Some(ColSort::Default); + if col_group.sort.is_some() { + col_group.sort = Some(ColSort::Default); + } } }