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

Tooltip and Popover do not work when applied to a button next to a disabled button in Chrome-based browsers #36614

Closed
mathieucaroff opened this issue Jul 20, 2022 · 1 comment

Comments

@mathieucaroff
Copy link

Reproduction link

Edit on CodeSandbox

Steps to reproduce

  1. Move your mouse pointer to the disabled button.
  2. Move it directly from the disabled button to the other button. It is important that the mouse moves onto the other button at the same time as it exits the disabled button.

What is expected?

The tooltip of the second button should appear.

What is actually happening?

No tooltip appears.

Environment Info
antd 4.21.7
React 18.2.0
System Windows 10 as well as MacOS 12.2.1
Browser Chrome 103.0 as well as Edge and Safari

This bug does not affect Firefox. It affects Chromium-based browsers.

This bug also appears when using the Popover component in place of the Tooltip component.

Spacing the buttons mitigates this bug, as it makes it harder to move the mouse between buttons fast enough.

Similar issues:

The solution proposed in issue 30191 of wrapping the button in a div does not work.

@mathieucaroff mathieucaroff changed the title Tooltip and Popover do not work when applied a button next to a disabled button in Chrome-based browsers Tooltip and Popover do not work when applied to a button next to a disabled button in Chrome-based browsers Jul 20, 2022
@MadCcc
Copy link
Member

MadCcc commented Jul 20, 2022

mouseenter event wasn't triggered when move mouse from disabled button to the other.
It also occurred on native button.
I recommend you to space the buttons.

@MadCcc MadCcc closed this as not planned Won't fix, can't repro, duplicate, stale Jul 20, 2022
@afc163 afc163 reopened this Jul 27, 2022
@afc163 afc163 closed this as completed Jul 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants