Skip to content

Commit

Permalink
fix native select menu on mobile (#1828)
Browse files Browse the repository at this point in the history
  • Loading branch information
caseyjhol committed Apr 28, 2020
1 parent 865abf1 commit ff79469
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 @@ -2984,6 +2984,8 @@
},

mobile: function () {
// ensure mobile is set to true if mobile function is called after init
this.options.mobile = true;
this.$element[0].classList.add('mobile-device');
},

Expand Down

0 comments on commit ff79469

Please sign in to comment.