Skip to content

Commit

Permalink
allow HTML in placeholder title for non-multiple selects (close #1440)
Browse files Browse the repository at this point in the history
  • Loading branch information
caseyjhol committed Oct 20, 2016
1 parent 6b7d2a4 commit caf5b4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/bootstrap-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@
// Use native JS to prepend option (faster)
var element = this.$element[0];
titleOption.className = 'bs-title-option';
titleOption.appendChild(document.createTextNode(this.options.title));
titleOption.innerHTML = this.options.title;
titleOption.value = '';
element.insertBefore(titleOption, element.firstChild);
// Check if selected or data-selected attribute is already set on an option. If not, select the titleOption option.
Expand Down

0 comments on commit caf5b4f

Please sign in to comment.