Remove PickerEvent::Dismiss emission from picker header

This commit is contained in:
Piotr Osiewicz 2023-07-04 16:30:17 +02:00
parent e9b34de7c8
commit 48371ab8b2

View file

@ -255,9 +255,7 @@ impl PickerDelegate for BranchListDelegate {
Some(
MouseEventHandler::<BranchList, _>::new(0, cx, move |_, _| label)
.on_click(MouseButton::Left, move |_, _, _| {})
.on_down_out(MouseButton::Left, move |_, _, cx| {
cx.emit(PickerEvent::Dismiss)
})
.on_down_out(MouseButton::Left, move |_, _, _| {})
.into_any(),
)
}