-
Notifications
You must be signed in to change notification settings - Fork 560
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 stuck when surrounding a disabled button #231
Comments
Can you send me the browser, version + OS? |
sounds right, however wrapping the button in a |
Any workarounds for this? Wrapping the button does not work for me either. This seems like a pretty common use case for Tooltip (indicating disabled button reasoning) |
@chancestrickland Sorry to ping, but lately I noticed that more attention is being put towards the development of Reach UI, hence I'm wondering if this issue is high in the priority list? Thanks a lot for spending time on this, I really enjoy using Reach as a foundation :) |
@raunofreiberg It's in the backlog but we're working through the issues. I'll update as soon as I've merged. If you could help out with a PR or even a CodeSandbox reproduction that would certainly get it moving faster! |
@chancestrickland Thanks for the response! I've set up a Codesandbox with a reproduction of the issue -> https://codesandbox.io/s/reach-ui-tooltip-disabled-button-issue-unwi0 |
@raunofreiberg @chancestrickland Confirmed to be broken on Chromium based browsers. On Firefox it doesn't get stuck. Chromium, Google Chrome and Vivaldi are broken. |
So this appears to be a bigger issue with disabled buttons inconsistently firing mouse events across browsers. Related open issues here facebook/react#4251 and here https://bugs.chromium.org/p/chromium/issues/detail?id=120132 I'll need to think through this a bit as to how we deal with this behavior in Reach. Any suggestions from those following are welcome. |
I think we're going to punt on this issue for now. We are discussing some options and may reconsider, but ultimately this should probably be addressed by the browsers. I also feel like different use cases may require different behaviors, so in the mean time:
|
@chancestrickland I tried one of your suggestions
and it doesn't seem to work 🤔 Reproducable case: https://codesandbox.io/s/sad-hertz-howcs |
When adding a
Tooltip
on top of a disabledbutton
, the Tooltip gets stuck, I'm not sure if I'm missing a setting, here is an example of what I'm doing 😄The text was updated successfully, but these errors were encountered: