diff --git a/js/bootstrap-tokenfield.js b/js/bootstrap-tokenfield.js index 5b2759d..79c7dae 100644 --- a/js/bootstrap-tokenfield.js +++ b/js/bootstrap-tokenfield.js @@ -161,7 +161,7 @@ this.$element.prependTo( this.$wrapper ) // Calculate inner input width - this.update() + setTimeout(this.update.bind(this), 0); // Create initial tokens, if any this.setTokens(this.options.tokens, false, ! this.$element.val() && this.options.tokens )