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

Commit b719a74

Browse files
Changed plugin to clear out bad text when no token is selected
1 parent 92bf8d8 commit b719a74

File tree

2 files changed

+1
-0
lines changed

2 files changed

+1
-0
lines changed

.DS_Store

6 KB
Binary file not shown.

src/jquery.tokeninput.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ $.TokenList = function (input, url_or_data, settings) {
147147
})
148148
.blur(function () {
149149
hide_dropdown();
150+
$(this).val("");
150151
})
151152
.bind("keyup keydown blur update", resize_input)
152153
.keydown(function (event) {

0 commit comments

Comments
 (0)