Skip to content

1 Fix + 1 Enhancement: Category Header not shown and remove active when !selectOnBlur #391

Description

@leenooks

Hi,

I noticed that category headers were not being shown, because this is not available in .each(). that was defined, but should be used.

Also, I've added removing the active element when moving the mouse outside of the list, if selectOnBlur = false .

Hopefully you find it useful:

> $ diff bootstrap3-typeahead.js bootstrap3-typeahead.js.orig
345c345
<                 if (that.showCategoryHeader) {
---
>                 if (this.showCategoryHeader) {
658,660d657
<             if (! this.selectOnBlur) {
<                  this.$menu.find('.active').removeClass('active');
<             }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions