Flesh out a popover control
This commit is contained in:
parent
164084c61c
commit
ebbbeca9a6
3 changed files with 232 additions and 92 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue