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
  • #21366
Closed
Open
Issue created Dec 19, 2016 by Administrator@rootContributor

Dropdown: don't ignore keydown from input or textarea

Created by: gpakosz

I'm reopening an issue for v4, as #15757 (closed) got closed without resolution for v3.

At the time I opened the issue, v4 was still filtering key down events for input or textarea:

static _dataApiKeydownHandler(event) {
  if (!/(38|40|27|32)/.test(event.which) ||
     /input|textarea/i.test(event.target.tagName)) {
    return
  }

In my opinion, a common use of an <input type="text"> and dropdown combination would be displaying search results as a dropdown ala http://developer.github.com: image

In that respect, can you please make the behavior configurable (if you don't want to revert the default behavior).

Thank you.

Assignee
Assign to
Time tracking