Skip to content

Commit

Permalink
only override showTick option if show-tick class is set (#2126)
Browse files Browse the repository at this point in the history
  • Loading branch information
caseyjhol committed Mar 31, 2019
1 parent e4aa609 commit 3093246
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/bootstrap-select.js
Expand Up @@ -883,7 +883,10 @@

this.multiple = this.$element.prop('multiple');
this.autofocus = this.$element.prop('autofocus');
this.options.showTick = this.$element[0].classList.contains('show-tick');

if (this.$element[0].classList.contains('show-tick')) {
this.options.showTick = true;
}

this.$newElement = this.createDropdown();
this.$element
Expand Down

0 comments on commit 3093246

Please sign in to comment.