From 8e931bd8628c20b62c26e4379092da5107676b2e Mon Sep 17 00:00:00 2001 From: Jason Lee Date: Mon, 3 Feb 2025 14:55:51 +0800 Subject: [PATCH] list: Avoid duplicate active item background. (#594) --- crates/ui/src/list/list_item.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/crates/ui/src/list/list_item.rs b/crates/ui/src/list/list_item.rs index 04c9397d..97257c4d 100644 --- a/crates/ui/src/list/list_item.rs +++ b/crates/ui/src/list/list_item.rs @@ -128,7 +128,6 @@ impl RenderOnce for ListItem { .relative() .items_center() .justify_between() - .when(is_active, |this| this.bg(cx.theme().list_active)) .when(!self.disabled, |this| { this.when_some(self.on_click, |this, on_click| { this.cursor_pointer()