Skip to content
This repository was archived by the owner on Sep 10, 2023. It is now read-only.

Commit 1c74b10

Browse files
author
Patrick Williams
committed
adding tabbing out support for free tagging input fields
1 parent 3f09e7e commit 1c74b10

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/jquery.tokeninput.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,11 @@ $.TokenList = function (input, url_or_data, settings) {
335335
hidden_input.change();
336336
} else {
337337
if ($(input).data("settings").allowFreeTagging) {
338-
add_freetagging_tokens();
338+
if($(input).data("settings").allowTabOut && $(this).val() === "") {
339+
return true;
340+
} else {
341+
add_freetagging_tokens();
342+
}
339343
} else {
340344
$(this).val("");
341345
if($(input).data("settings").allowTabOut) {

0 commit comments

Comments
 (0)