Skip to content

Commit

Permalink
Merge 3e7b242 into 6fbea9a
Browse files Browse the repository at this point in the history
  • Loading branch information
Björn Nordqvist committed May 4, 2016
2 parents 6fbea9a + 3e7b242 commit 1b79695
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/selectize.js
Original file line number Diff line number Diff line change
Expand Up @@ -1679,7 +1679,7 @@ $.extend(Selectize.prototype, {
if (!this.settings.placeholder) return;
var $input = this.$control_input;

if (this.items.length) {
if ( this.items.length && !this.settings.keepPlaceholder || this.order == this.items.length || this.settings.maxItems != null && this.items.length >= this.settings.maxItems ) {
$input.removeAttr('placeholder');
} else {
$input.attr('placeholder', this.settings.placeholder);
Expand Down

0 comments on commit 1b79695

Please sign in to comment.