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 not showing up when attached to Bootstrap Modal element #28

Closed
bbguitar77 opened this issue Oct 15, 2015 · 2 comments
Closed

Tooltip not showing up when attached to Bootstrap Modal element #28

bbguitar77 opened this issue Oct 15, 2015 · 2 comments

Comments

@bbguitar77
Copy link

I have a bootstrap modal with form buttons that I provide tooltips for ... however, the tooltips aren't showing up. I've tried increasing the z-index in the rc-bootstrap.css but that didn't fix the problem. Tooltip works fine in other non-modal parts of my application.

Anything else I should try?

@yiminghe
Copy link
Member

try set overlayStyle prop to increase zIndex

can you provide a demo on github?

@stahlmanDesign
Copy link

Adding overlayStyle prop works:

    <Tooltip
      prefixCls="rc-slider-tooltip"
      overlay={value}
      overlayStyle={{ zIndex: 1051 /* because modal is 1050 */ }}
      visible={dragging}
      placement="top"
      key={index}
    >

shc023 pushed a commit to shc023/tooltip that referenced this issue Jul 31, 2021
fix bug afterPopupVisibleChange can be triggered
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