Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Temporarily disable click handlers
Marshall Bowersa6b872bb0c1e
diff --git a/crates/ui2/src/components/icon_button.rs b/crates/ui2/src/components/icon_button.rsindex 91bb920811e..1562dcd791f 100644--- a/crates/ui2/src/components/icon_button.rs+++ b/crates/ui2/src/components/icon_button.rs@@ -80,9 +80,9 @@ impl<S: 'static + Send + Sync> IconButton<S> {}if let Some(click_handler) = self.handlers.click.clone() {- div = div.on_click(MouseButton::Left, move |state, event, cx| {- click_handler(state, cx);- });+ // div = div.on_click(MouseButton::Left, move |state, event, cx| {+ // click_handler(state, cx);+ // });}div.w_7()diff --git a/crates/ui2/src/elements/button.rs b/crates/ui2/src/elements/button.rsindex 9708aec23ee..ae72f6be50a 100644--- a/crates/ui2/src/elements/button.rs+++ b/crates/ui2/src/elements/button.rs@@ -196,9 +196,9 @@ impl<S: 'static + Send + Sync + Clone> Button<S> {}if let Some(click_handler) = self.handlers.click.clone() {- el = el.on_click(MouseButton::Left, move |state, event, cx| {- click_handler(state, cx);- });+ // el = el.on_click(MouseButton::Left, move |state, event, cx| {+ // click_handler(state, cx);+ // });}el