Skip to content
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

Bug - Dropdown/Tooltip - tooltips do not work by default in dropdown items #11358

Open
kmcfaul opened this issue Dec 18, 2024 · 1 comment
Open

Comments

@kmcfaul
Copy link
Contributor

kmcfaul commented Dec 18, 2024

Because Tooltip wraps the trigger in a div, this interferes with the trigger/hover conditions so a tooltip will not appear. We should make it so Dropdown (and probably Select/MenuContainer will need this as well) creates an internal ref to use by default for tooltips, or we should make it so Tooltip does that internally.

Workaround: Create a reference, pass the ref to DropdownItem and the triggerRef field of tooltipProps.

Aside: Keyboard navigation still shows the tooltip, it is only the mouse that doesn't trigger it.

@kmcfaul
Copy link
Contributor Author

kmcfaul commented Dec 18, 2024

Identified from OCP migration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Needs triage
Development

No branches or pull requests

1 participant