Skip to content

Commit

Permalink
fix check and restore selectedTextFormatOption
Browse files Browse the repository at this point in the history
  • Loading branch information
bercut committed Jun 22, 2017
1 parent fbab292 commit 6308c00
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/js/classes/AjaxBootstrapSelectList.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,9 @@ AjaxBootstrapSelectList.prototype.refresh = function (triggerChange) {
if (!this.plugin.$element.find('option').length && emptyTitle && emptyTitle.length) {
this.setTitle(emptyTitle);
}
else if (this.title) {
else if (this.title ||
((plugin.selectpicker.options.selectedTextFormat === 'static' ) &&
(this.selectedTextFormat !== plugin.selectpicker.options.selectedTextFormat))) {
this.restoreTitle();
}
this.plugin.selectpicker.refresh();
Expand Down

0 comments on commit 6308c00

Please sign in to comment.