Skip to content

Commit

Permalink
fire changed.bs.select when setting val (#1303)
Browse files Browse the repository at this point in the history
  • Loading branch information
caseyjhol committed Jul 19, 2017
1 parent 0f95ec4 commit b5fcdf7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/bootstrap-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -1980,8 +1980,9 @@

val: function (value) {
if (typeof value !== 'undefined') {
this.$element.val(value);
this.render();
this.$element
.val(value)
.triggerNative('change');

return this.$element;
} else {
Expand Down

0 comments on commit b5fcdf7

Please sign in to comment.