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

When a Button is both disabled and absolutely positioned, the wrapping Tooltip doesn't work. #5254

Closed
HandsomeOne opened this issue Mar 10, 2017 · 2 comments
Assignees
Labels
🐛 Bug Ant Design Team had proved that this is a bug.

Comments

@HandsomeOne
Copy link

HandsomeOne commented Mar 10, 2017

Environment(required)

  • antd version: 2.8.0
  • OS and its version: Windows 10 64-bit
  • Browser and its version: Firefox 52

What did you do? Please provide steps to re-produce your problem.

    <Tooltip title="title">
      <Button
        disabled
        style={{ position: 'absolute', right: 20, bottom: 20 }}
      >Disabled & Absolutely positioned</Button> 
    </Tooltip>

What do you expected?

The Tooltip works fine.

What happen?

The Tooltip won't appear when the button is hovered.

Re-producible online demo

http://codepen.io/handsomeone/pen/xqqRod?editors=0010

@afc163 afc163 added the 🐛 Bug Ant Design Team had proved that this is a bug. label Mar 10, 2017
@afc163 afc163 self-assigned this Mar 10, 2017
@afc163 afc163 closed this as completed in 5a2ed79 Mar 10, 2017
@HandsomeOne
Copy link
Author

@afc163 I checked the code, noticed that if the style of the Button is defined by its classname, rather than inline-style, then the Tooltip is still broken.

For demo, see http://codepen.io/handsomeone/pen/xqqRod?editors=0110 please.

@lock
Copy link

lock bot commented May 1, 2018

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators May 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐛 Bug Ant Design Team had proved that this is a bug.
Projects
None yet
Development

No branches or pull requests

2 participants