Tooltips around disabled items #1630
Answered
by
mayank99
claudiaareneee
asked this question in
Q&A
-
I want to use the Tooltip component to wrap around a disabled button. What's the best/easiest way to get the tooltip to show up when the button is disabled? For example, I have this code: <Tooltip content={disabledState ? "some error message" : "some info message"}>
<IconButton
disabled={disabledState}
onClick={handleEvent}>
{<SvgMoon />}
</IconButton>
</Tooltip> Whenever I hover over the disabled button, I don't get the tooltip. Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Answered by
mayank99
Oct 12, 2023
Replies: 1 comment 2 replies
-
This is a long-known problem that was recently fixed in #1461 (v3). What version of iTwinUI are using? |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
claudiaareneee
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a long-known problem that was recently fixed in #1461 (v3). What version of iTwinUI are using?