This commit is contained in:
Antonio Scandurra 2022-05-05 15:15:58 +02:00
parent 6b22c47d47
commit 61346f734d
16 changed files with 39 additions and 27 deletions

View file

@ -119,7 +119,7 @@ impl View for Select {
.with_style(style.header)
.boxed()
})
.on_click(move |cx| cx.dispatch_action(ToggleSelect))
.on_click(move |_, cx| cx.dispatch_action(ToggleSelect))
.boxed(),
);
if self.is_open {
@ -153,7 +153,7 @@ impl View for Select {
)
},
)
.on_click(move |cx| cx.dispatch_action(SelectItem(ix)))
.on_click(move |_, cx| cx.dispatch_action(SelectItem(ix)))
.boxed()
}))
},