chore: Avoid cx.prevent_default when ListItem or other click (#381)

This commit is contained in:
Jason Lee 2024-10-29 16:54:08 +08:00 committed by GitHub
parent db041fea88
commit 0b0fc61c2f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 0 additions and 3 deletions

View file

@ -69,7 +69,6 @@ impl RenderOnce for Link {
.text_decoration_1()
})
.on_mouse_down(MouseButton::Left, |_, cx| {
cx.prevent_default();
cx.stop_propagation();
})
.on_click({

View file

@ -343,7 +343,6 @@ where
.on_mouse_down(
MouseButton::Left,
cx.listener(move |this, _, cx| {
cx.stop_propagation();
this.right_clicked_index = None;
this.selected_index = Some(ix);
this.on_action_confirm(&Confirm, cx);

View file

@ -128,7 +128,6 @@ impl RenderOnce for ListItem {
this.cursor_pointer()
.on_mouse_down(MouseButton::Left, move |_, cx| {
cx.stop_propagation();
cx.prevent_default();
})
.on_click(on_click)
} else {