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

Commit 375bab2

Browse files
author
John Gerhardt
committed
Remove it on prepopulate
1 parent 2d6bd18 commit 375bab2

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
@@ -453,6 +453,7 @@ $.TokenList = function (input, url_or_data, settings) {
453453
$.each(li_data, function (index, value) {
454454
insert_token(value);
455455
checkTokenLimit();
456+
input_box.attr("placeholder", null)
456457
});
457458
}
458459

@@ -739,7 +740,6 @@ $.TokenList = function (input, url_or_data, settings) {
739740

740741
// Remove this token from the saved list
741742
saved_tokens = saved_tokens.slice(0,index).concat(saved_tokens.slice(index+1));
742-
// If there are no tokens left, restore the placeholder
743743
if (saved_tokens.length == 0) {
744744
input_box.attr("placeholder", settings.placeholder)
745745
}

0 commit comments

Comments
 (0)