From f98e9b524224e0ea840b7337d0961291ab10b41d Mon Sep 17 00:00:00 2001 From: Casey Holzer Date: Thu, 7 May 2020 16:05:57 -0600 Subject: [PATCH] use DOMContentLoaded instead of document.ready (#1709) --- js/bootstrap-select.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/bootstrap-select.js b/js/bootstrap-select.js index 295238f29..767dc08e2 100644 --- a/js/bootstrap-select.js +++ b/js/bootstrap-select.js @@ -3366,7 +3366,7 @@ // SELECTPICKER DATA-API // ===================== - $(function () { + document.addEventListener('DOMContentLoaded', function () { $('.selectpicker').each(function () { var $selectpicker = $(this); Plugin.call($selectpicker, $selectpicker.data());