Skip to content

Commit 77394f3

Browse files
committed
Version 2.3.0
Features - Added option ``backdropOnFocus`` will trigger the backdrop option as long as the Typeahead input is focused - Added ``onShowLayout`` and ``onHideLayout`` callbacks - ``template`` can now be a function (query, item) that returns a template string - Added query string sanitization - Added ``.typeahead-item`` and ``.typeahead-empty`` on list items to easily apply CSS on these LI elements - #109 ``correlativeTemplate`` can be an array of display keys instead of the complete template - #111, #127 Added ``filter`` and ``matcher`` options. See the documentation to know the differences and possible return options. - #115 Added ``e.preventInputChange`` boolean to ``onNavigateBefore`` callback to prevent the input from changing when navigating (arrow up / down) the results - #118 Every functions and callbacks are now scoped with the Typeahead object, it is possible to use ``this`` to reach the Typeahead variables & functions - #122 It is now possible to set a custom accent object with ``from`` and ``to`` - #125 Added ``onNavigateAfter`` callback - #127 ``emptyTemplate`` now accepts a jQuery LI object - #132 It is now possible to set a function that returns a request object inside ``source.group.url`` Fixes - Removed ``.show()`` and ``.hide()`` jQuery functions, use the CSS instead! - Fixed dropdownFilter when clicking outside wouldn't close it - Fixed jQuery-3.0.0-alpha1 issue, missing the node.selector so using ``options.input`` is now mandatory for using Typeahead['#my-search'] (see extras section in documentation) - Fixed highlight option when query was empty - #121 ``selector.hint`` was not being interpreted
1 parent 981788d commit 77394f3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/jquery.typeahead.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1780,6 +1780,7 @@
17801780

17811781
this.hint.container
17821782
.val(hint.length > 0 && this.rawQuery + hint.substring(this.query.length) || "");
1783+
17831784
}
17841785

17851786
},

0 commit comments

Comments
 (0)