From c7b83975cb6e1e8d0661172a210cf46639b01e41 Mon Sep 17 00:00:00 2001 From: Michael Weimann Date: Thu, 29 Jul 2021 20:38:00 +0200 Subject: [PATCH] init select 2 after document ready --- resources/assets/js/forms.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/resources/assets/js/forms.js b/resources/assets/js/forms.js index 323b6290..0d96f280 100644 --- a/resources/assets/js/forms.js +++ b/resources/assets/js/forms.js @@ -199,9 +199,11 @@ $(function () { }); }); -$('select').select2({ - theme: 'bootstrap-5', -}); +$(function () { + $('select').select2({ + theme: 'bootstrap-5', + }); +}) /** * Show oauth buttons on welcome title click