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
  • Merge requests
  • !36633

Fix arrow navigation in dropdown with input

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Julien Déramond requested to merge main-jd-fix-up-down-keyboard-with-search-input-and-dropdown into main Jun 25, 2022
  • Overview 1
  • Commits 1
  • Pipelines 0
  • Changes 2

Fixes #36598 (closed)

Apparently due to https://github.com/twbs/bootstrap/commit/bb7664db0aea2dddbc637992d2d0e78632dc2e68 I tried to reintegrate the previous behavior for input/textarea. If it was removed on purpose in this commit, please close this PR and the corresponding issue.

Live preview

For non-regression testing

Manual test

<div class="dropdown">
  <input id="search" class="form-control dropdown-toggle" type="text"
  placeholder="Search..." 
  data-bs-toggle="dropdown"
  aria-expanded="false" aria-label="Search...">
  <ul class="dropdown-menu mt-1 dropdown-menu-end" aria-labelledby="search">
      <li><a class="dropdown-item" href="#">Item 1</a></li>
      <li><a class="dropdown-item" href="#">Item 2</a></li>
      <li><a class="dropdown-item" href="#">Item 3</a></li>
      <li><a class="dropdown-item" href="#">Item 4</a></li>
      <li><a class="dropdown-item" href="#">Item 5</a></li>
  </ul>
</div>

And then press UP/DOWN key when the input is focused.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: main-jd-fix-up-down-keyboard-with-search-input-and-dropdown