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]: Tooltip should not open when its trigger is also a trigger of an opened popover #33873

Open
2 tasks done
ling1726 opened this issue Feb 19, 2025 · 1 comment
Open
2 tasks done

Comments

@ling1726
Copy link
Member

Component

Tooltip

Package version

9.58.1

React version

18

Environment

System:
    OS: Linux 5.15 Ubuntu 22.04.3 LTS 22.04.3 LTS (Jammy Jellyfish)
    CPU: (32) x64 Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz
    Memory: 55.16 GB / 62.77 GB
    Container: Yes
    Shell: 5.1.16 - /bin/bash

Current Behavior

When a popover is opened, hovering again its trigger will also open a tooltip

Expected Behavior

When a popover is opened, hovering again its trigger will not open any tooltips

Reproduction

https://stackblitz.com/edit/4fc6eggd?file=src%2Fexample.tsx

Steps to reproduce

  1. go to https://stackblitz.com/edit/4fc6eggd?file=src%2Fexample.tsx
  2. click on button to open popover
  3. hover over button while popver is open
  4. notice the tooltip appears over the popover

Are you reporting an Accessibility issue?

no

Suggested severity

Urgent - No workaround and Products/sites are affected

Products/sites affected

No response

Are you willing to submit a PR to fix?

no

Validations

  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • The provided reproduction is a minimal reproducible example of the bug.
@ling1726
Copy link
Member Author

ling1726 commented Feb 19, 2025

While it is possible to control both popover and tooltip state to manage achieve this, it is not a scalable solution for large codebases, we should be consistent with the behaviour for menu triggers since many partners actually render MenuList components inside of Popovers

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

No branches or pull requests

2 participants