-
Notifications
You must be signed in to change notification settings - Fork 355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tooltip
property on disabled DropdownItem does not work
#4581
Comments
@KKoukiou can you please tell me what version of patternFly React you are using. |
@patternfly/react-core": "3.158.1", |
This was forgotten in PR cockpit-project#14195 Don't use DropdownItem's `tooltip=` property as that does not work [1]. Wrap it in a Tooltip instead. [1] patternfly/patternfly-react#4581 Closes cockpit-project#14381
This was forgotten in PR #14195 Don't use DropdownItem's `tooltip=` property as that does not work [1]. Wrap it in a Tooltip instead. [1] patternfly/patternfly-react#4581 Closes #14381
Same happends with "@patternfly/react-core": "4.32.1", |
That is probably to be expected, since disabled elements do not emit hover events. I believe @seanforyou23 did some research in this area and found a solution for another component |
Here's one possible workaround in the meantime:
Since "@patternfly/react-core" 4.32.8 Tooltip has a
Then you should always get the tooltip https://codesandbox.io/s/restless-night-s2mze?file=/index.js |
Thanks for the workaround, it also works if you wrap the component with the tooltip instead of passing the tooltip prop:
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
PF4 allows us to use both, and that because elements with 'disabled' don't work with tooltips. See: patternfly/patternfly-react#4581 and https://pf4.patternfly.org/components/button#aria-disabled This commit ensures testlib is aware of both ways that elements get disabled.
PF4 allows us to use both, and that because elements with 'disabled' don't work with tooltips. See: patternfly/patternfly-react#4581 and https://pf4.patternfly.org/components/button#aria-disabled This commit ensures testlib is aware of both ways that elements get disabled.
PF4 allows us to use both, and that because elements with 'disabled' don't work with tooltips. See: patternfly/patternfly-react#4581 and https://pf4.patternfly.org/components/button#aria-disabled This commit ensures testlib is aware of both ways that elements get disabled.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
this issue will be cover by issue #5826 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Dup of #5826 (not 5286). Solved now — use latest packages to include #6038 and use (Similar support for |
tooltip
property on disabled DropdownItem does not workSo the above code snippet will not show any tooltip.
Probably related to #1894
The text was updated successfully, but these errors were encountered: