Fix tooltips not showing on IconButtons (#3427)
This PR fixes tooltips not showing on `IconButton`s. The "fix" here is the same hack that we used to fix `on_click` handlers for `ListItem`s, where we introduce another layer of wrapping with an element with an ID set. This PR also adds a story for the `IconButton` so this issue can be tested/observed in isolation. Release Notes: - N/A
This commit is contained in:
@@ -65,7 +65,8 @@ impl RenderOnce for IconButton {
|
||||
}
|
||||
}
|
||||
|
||||
button
|
||||
// HACK: Add an additional identified element wrapper to fix tooltips not showing up.
|
||||
div().id(self.id.clone()).child(button)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user