Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Issues
  • #32648
Closed
Open
Issue created Dec 29, 2020 by Administrator@rootContributor

Wrong fallback placement for dropdown

Created by: rohit2sharma95

When positioned with Popper, fallback placement for dropdown seems wrong.

Current behavior
(Flipped with top placement)
Expected behavior
(Flipped with top-end placement)
wrong-fallback right-fallback

Because the changes made in #32405 override the Popper's default value for fallbackPlacement that is [oppositePlacement]. By default Popper places the element to the opposite side (like bottom-end => top-end and bottom => top).

Now Popper can place the element to the specified positions only: https://github.com/twbs/bootstrap/blob/122b2bdd485373c05eeab50c9f809db31117b898/js/src/dropdown.js#L311-L316

But these changes are good for Tooltip/Popover (Because they are not placed to the edges of the reference element)

Assignee
Assign to
Time tracking