diff --git a/crates/ui/src/components/toggle.rs b/crates/ui/src/components/toggle.rs index a41dce6c61..1e637f2419 100644 --- a/crates/ui/src/components/toggle.rs +++ b/crates/ui/src/components/toggle.rs @@ -247,7 +247,13 @@ impl RenderOnce for Checkbox { h_flex() .id(self.id) - .cursor_pointer() + .map(|this| { + if self.disabled { + this.cursor_not_allowed() + } else { + this.cursor_pointer() + } + }) .gap(DynamicSpacing::Base06.rems(cx)) .child(checkbox) .when_some(