profile
viewpoint

Ask questionsTooltip placement does not work with a parent container has overflow: auto or overflow: scroll

The tooltip placement does not work with a parent container has overflow: auto or overflow: scroll. boundary: 'window' did not help either.

twbs/bootstrap

Answer questions jasonlewis

When initialising with JavaScript you can use the following popperConfig to work around this, though it feels like it needs to be addressed either as docs or elsewhere.

popperConfig: function (config) {
  const flip = config.modifiers.find(({ name }) => name === 'flip')

  flip.options = {
    ...flip.options,
    boundary: 'window'
  }

  return config
}
useful!
source:https://uonfu.com/
Github User Rank List