table: Remove unnecessary actions that stop bubbling to ensure focused (#392)

This commit is contained in:
Floyd Wang 2024-11-04 17:22:01 +08:00 committed by GitHub
parent ca44ca6311
commit 1c5d63edb1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -754,7 +754,6 @@ where
})
.hover(|this| this.bg(cx.theme().secondary).opacity(7.))
.active(|this| this.bg(cx.theme().secondary_active).opacity(1.))
.on_mouse_down(MouseButton::Left, |_, cx| cx.stop_propagation())
.on_click(cx.listener(move |table, _, cx| table.perform_sort(col_ix, cx)))
.child(
Icon::new(icon)
@ -780,7 +779,6 @@ where
.on_mouse_down(
MouseButton::Left,
cx.listener(move |this, _, cx| {
cx.stop_propagation();
this.on_col_head_click(col_ix, cx);
}),
)