blairanderson
3/11/2017 - 12:15 AM

How to keep twitter typeahead search results OPEN to debug styling

How to keep twitter typeahead search results OPEN to debug styling

after initializing typeahead:

var el = $('#your-input-element')
el.typeahead({...})

find the element and mess it with

var tt = el.data("ttTypeahead")
tt.input.off("blurred");
tt._onBlurred = function () {this.isActivated = false;};
tt.input.onSync("blurred", tt._onBlurred, tt);