Flesh out a popover control

This commit is contained in:
Conrad Irwin 2023-11-30 16:13:44 -07:00
parent 164084c61c
commit ebbbeca9a6
3 changed files with 232 additions and 92 deletions

View file

@ -261,7 +261,11 @@ impl RenderOnce for ButtonLike {
|this, on_click| this.on_click(move |event, cx| (on_click)(event, cx)),
)
.when_some(self.tooltip, |this, tooltip| {
this.tooltip(move |cx| tooltip(cx))
if !self.selected {
this.tooltip(move |cx| tooltip(cx))
} else {
this
}
})
.children(self.children)
}