From c5df831d5da24b98e590ce35492e384c45ffe94e Mon Sep 17 00:00:00 2001 From: Zain Adam Date: Sat, 5 Nov 2022 02:37:46 +0700 Subject: [PATCH] chore(select2): add select2 opts --- assets/js/scripts.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/js/scripts.js b/assets/js/scripts.js index 4117304..f042acf 100644 --- a/assets/js/scripts.js +++ b/assets/js/scripts.js @@ -329,7 +329,8 @@ $(function() { // Select2 if(jQuery().select2) { - $(".select2").select2(); + const select2Opts = $(".select2").data('select2-opts') + $(".select2").select2(select2Opts || {}); } // Selectric