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
  • #33465
Closed
Open
Issue created Mar 24, 2021 by Patrick H. Lauke@patrickhlaukeContributor

v5: Dropdown trigger button "swallows" Esc keypresses when focused

Split off from https://github.com/twbs/bootstrap/issues/23507#issuecomment-805849754 (which is an issue about v4).

If a modal dialog contains a dropdown, Esc is swallowed/intercepted by the dropdown trigger button even when the dropdown itself is closed.

Instead, the keypress should not be handled when the dropdown is closed, letting it bubble up to the modal.

See the demo https://codepen.io/Jarek3000/pen/LYxVJJg

  • launch the modal
  • Tab to the dropdown button so it receives focus
  • press Esc - nothing happens, as the keypress is intercepted by the modal code
Assignee
Assign to
Time tracking