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

Commit 1de2d4d

Browse files
committed
Should add freetokens on blur
1 parent bce4dbd commit 1de2d4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jquery.tokeninput.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,11 +252,11 @@ $.TokenList = function (input, url_or_data, settings) {
252252
})
253253
.blur(function () {
254254
hide_dropdown();
255-
$(this).val("");
256255
token_list.removeClass($(input).data("settings").classes.focused);
257256

258257
if ($(input).data("settings").allowFreeTagging) {
259258
add_freetagging_tokens();
259+
$(this).val("");
260260
} else {
261261
$(this).val("");
262262
}

0 commit comments

Comments
 (0)