Skip to content

Commit

Permalink
use document ready to auto-init bootstrap-select (#1709)
Browse files Browse the repository at this point in the history
  • Loading branch information
caseyjhol committed May 8, 2020
1 parent 4a698b3 commit 1dbd8cf
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 @@ -3345,7 +3345,7 @@

// SELECTPICKER DATA-API
// =====================
$(window).on('load' + EVENT_KEY + '.data-api', function () {
$(function () {
$('.selectpicker').each(function () {
var $selectpicker = $(this);
Plugin.call($selectpicker, $selectpicker.data());
Expand Down

0 comments on commit 1dbd8cf

Please sign in to comment.