Skip to content

Commit

Permalink
fix refresh action (#2816)
Browse files Browse the repository at this point in the history
Co-authored-by: SimonTod <[email protected]>
  • Loading branch information
SimonTod and SimonTod authored Mar 31, 2023
1 parent 881aef6 commit 83190aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/bootstrap-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -3419,6 +3419,8 @@
var config = $.extend({}, this.options, getAttributesObject(this.$element), this.$element.data()); // in this order on refresh, as user may change attributes on select, and options object is not passed on refresh
this.options = config;

this.selectpicker.main.data = [];

if (this.options.source.data) {
this.render();
this.buildList();
Expand Down

0 comments on commit 83190aa

Please sign in to comment.