-
-
Notifications
You must be signed in to change notification settings - Fork 79k
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 placement does not work with a parent container has overflow: auto or overflow: scroll #33463
Comments
@KeenthemesHub can you provide an example replicating the problem using codepen? |
@GeoSot I can confirm the issue. As @KeenthemesHub isn't answering I will takeover this bug report. If the parent container is set to x/y As per Bootstrap website documentation about tooltips:
Specifying On the following default case I have reproduced the issue i'm experiencing.
|
@GeoSot Any news on that subject ? |
@rohit2sharma95 , can you help us here? 🧑🤝🧑 |
When initialising with JavaScript you can use the following popperConfig: function (config) {
const flip = config.modifiers.find(({ name }) => name === 'flip')
flip.options = {
...flip.options,
boundary: 'window'
}
return config
} |
referring to @jasonlewis answer setting up popperConfig: function(config) {
const preventOverflow = config.modifiers.find(({ name }) => name === 'preventOverflow')
preventOverflow.options = {
...preventOverflow.options,
altAxis: true,
}
return config
} I'm not sure if this a proper solution since when i'm using |
I think we should review the Popper config in general. Currently we're setting boundary only for the Currently we're using this
If I set |
I am a bit late here, but this is not an issue, instead, it is a feature of Popper. (Also this is not related to bootstrap) Thanks, @jasonlewis for posting the solution here and in #33579, that's not the workaround instead the proper way of changing the popperConfig directly. Even it is mentioned in the official docs as well: https://getbootstrap.com/docs/5.0/components/tooltips/#using-function-with-popperconfig But setting the I hope this discussion is clear to you @amarinediary 🙂 |
The tooltip placement does not work with a parent container has overflow: auto or overflow: scroll. boundary: 'window' did not help either.
The text was updated successfully, but these errors were encountered: