Skip to content

question about data-bs-popper #40963

Answered by julien-deramond
ga1008ne asked this question in Q&A
Discussion options

You must be logged in to vote

Based on the code here:

// Disable Popper if we have a static display or Dropdown is in Navbar
if (this._inNavbar || this._config.display === 'static') {
Manipulator.setDataAttribute(this._menu, 'popper', 'static') // TODO: v6 remove
defaultBsPopperConfig.modifiers = [{
name: 'applyStyles',
enabled: false
}]
}

It seems the answer is no. The algorithm explicitly checks if the dropdown is inside a navbar and then enforces the attribute data-bs-popper="static".

There may be a potential workaround, though: the algorithm determines whether it's in a navbar by checking for the presence …

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@ga1008ne
Comment options

@julien-deramond
Comment options

@ga1008ne
Comment options

@julien-deramond
Comment options

Answer selected by ga1008ne
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants