chore: Avoid cx.prevent_default when ListItem or other click (#381)
This commit is contained in:
parent
db041fea88
commit
0b0fc61c2f
3 changed files with 0 additions and 3 deletions
|
|
@ -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({
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue