Dropdown elements can't have tooltips
Bumer-32 opened this issue · 1 comments
Here just simple dropdown menu with button inside it, and you can add tooltip to this button but it doesn't shows!
DropdownComponent.openContextMenu(
this,
rootComponent,
FlowLayout::child,
selectMode.x.toDouble(),
selectMode.y.toDouble() + selectMode.height.toDouble(),
) { dropdown ->
dropdown.allowOverflow(true)
dropdown.button(Text.literal("something")) { button ->
button.tooltip(Text.literal("my awesome tooltip")) // won't do anything but mc can launch with it
}
}
Maybe i'm making something wrong?