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
  • !7331

Added optional boolean param "autoselect" to typeahead.js

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/FestivalBobcats/3.0.0-wip into 3.0.0-wip Mar 19, 2013
  • Overview 0
  • Commits 5
  • Pipelines 0
  • Changes 7

Created by: FestivalBobcats

This small change is crucial for a project I'm involved in, which requires search behavior similar to the style of Google Instant. By default, the first item in the list is selected ('active' class added) immediately after the dropdown is rendered. This causes the menu to assume focus in the search form, which means pressing the enter key to submit your query will not submit the form but rather just update the value of the input with the selected item.

I tried work around after work around to restore focus to the form while a menu was active to no avail. This option is working great, and I've updated the tests and docs to accomodate.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/FestivalBobcats/3.0.0-wip