Skip to content

Commit

Permalink
Making initial values for token field be applied at start
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed Dec 7, 2017
1 parent e073a6a commit 8534d43
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/js/fields/advanced/TokenField.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@
{
this.options.tokenfield.showAutocompleteOnFocus = true;
}

//add initial data to tokenfield options
if (!Alpaca.isEmpty(this.data) && !this.options.tokenfield.tokens) {
this.options.tokenfield.tokens = this.data;
}
},

/**
Expand Down

0 comments on commit 8534d43

Please sign in to comment.