mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-07 11:11:30 +00:00
Temporarily disable click handlers
This commit is contained in:
parent
8cd112110e
commit
a6b872bb0c
2 changed files with 6 additions and 6 deletions
|
@ -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()
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue