-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
Tooltips do not work on elements inside Shadow DOM #24918
Comments
That's true as we use jQuery and jQuery access to the DOM, Currently Bootstrap do not handle Shadow DOM. I made a CodePen with our latest release (beta 2) : https://codepen.io/Johann-S/pen/YERLxV EDIT : It's totally doable to fix our JS to allow folk to use Bootstrap in shadow DOM, but it seems our CSS do not work 😟 BTW it's not very well supported see : https://caniuse.com/#feat=shadowdom |
The web is going toward Webcomponents, I think it's important to enable users to implement bootstrap with the ShadowDom |
@Johann-S What is the CodePen supposed to demonstrate? Were you able to get the tooltip to work? I've tried on Chrome and Safari and I don't see it working. |
Nothing but it's better to use the latest release which do not use Tether 😂 |
Will this problem be fixed? If so, when do you think it will be fixed? Our product would like to use this feature if it gets fixed soon. |
I made a branch ( |
@Johann-S I'm fine supporting it—seems to make sense that we do. |
@Johann-S Have your changes been committed yet? |
@Johann-S Just pinging you to see what the status is of this issue. Please let us know what's going on and when this may be fixed. |
I'm waiting for an approval of @mdo, @XhmikosR or @bardiharborow on #25150 |
Hi @Johann-S, any updates on this? How long do approvals usually take? |
Is this still waiting for approval? |
No I have to do some rework and rebase my branch |
I'm trying to add a tooltip to a button that resides inside a shadow DOM. Unfortunately, does not work. I traced the problem down to this snippet of code inside bootstrap.js.
isInTheDom is false because jquery.contains doesn't find the element, which I assume is because it resides inside the shadow DOM. If I manually set this value to true, the tooltip works perfectly. See my screenshot below.
To access my JSBin example, use the link below.
http://jsbin.com/qukeye/2/edit?html,js,output
The text was updated successfully, but these errors were encountered: