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

A few fixes for being able to use complex typeahead menus

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/arcanis/patch-1 into master Dec 12, 2012
  • Overview 0
  • Commits 7
  • Pipelines 0
  • Changes 3

Created by: arcanis

+Unit tests, because ❤

With this pull request, you can now make something like :

<input type="text" data-provide="typeahead" data-menu="#all-your-base-are-belong-to-me" />
<div id="all-your-base-are-belong-to-me" class="typeahead">
    <ul class="dropdown-menu" style="display: block;"></ul>
</div>

It wasn't possible before for technical reasons :

  • The <div> element was overwrote (.html())
  • The typeahead was displayed before typing, because it is using the display:none of the dropdown-menu class. Moving this class downward in the html dom was breaking this.

It's a nice addition for a few use cases : )

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/arcanis/patch-1