Skip to content

Commit

Permalink
use DOMContentLoaded instead of document.ready (#1709)
Browse files Browse the repository at this point in the history
  • Loading branch information
caseyjhol committed May 7, 2020
1 parent ebe131a commit f98e9b5
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 @@ -3366,7 +3366,7 @@

// SELECTPICKER DATA-API
// =====================
$(function () {
document.addEventListener('DOMContentLoaded', function () {
$('.selectpicker').each(function () {
var $selectpicker = $(this);
Plugin.call($selectpicker, $selectpicker.data());
Expand Down

0 comments on commit f98e9b5

Please sign in to comment.