diff --git a/crates/ui2/src/components/list/list_item.rs b/crates/ui2/src/components/list/list_item.rs index 481d96d242e81d78e656be158f555a4077a1ee89..a8ca45d1d7ae9ea123d7959392a9e9763a6e9080 100644 --- a/crates/ui2/src/components/list/list_item.rs +++ b/crates/ui2/src/components/list/list_item.rs @@ -192,7 +192,7 @@ impl RenderOnce for ListItem { .flex() .absolute() .left(rems(-1.)) - .visible_on_hover("") + .when(is_open, |this| this.visible_on_hover("")) .child(Disclosure::new(is_open).on_toggle(self.on_toggle)) })) .child(