Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How add tooltip for disabed button ? (reactstrap)

How add tooltip for disabled dropdown button. I use reactstrap.

like image 392
Oleg Ovcharenko Avatar asked Oct 28 '25 14:10

Oleg Ovcharenko


1 Answers

Disable the pointerEvents on the disabled button, so you're actually hovering on span instead of buttons:

<span id="foo">
    <Button disabled style={{ pointerEvents: 'none' }}>nope!</Button>
</span>
<Tooltip target="foo" ...etc>Button is disabled</Tooltip>
like image 172
NoobTW Avatar answered Oct 31 '25 08:10

NoobTW



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!