Skip to content

Commit

Permalink
fix: loading select2 in vite dev mode
Browse files Browse the repository at this point in the history
  • Loading branch information
theus77 committed Oct 21, 2024
1 parent b2e0717 commit da783f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion EMS/admin-ui-bundle/assets/src/core/plugins/select.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import $ from 'jquery'
import 'select2/dist/js/select2'
import select2 from 'select2'

class Select {
load(target) {
Expand All @@ -21,6 +21,7 @@ class Select {
}

select2(target) {
select2()
const targetQuery = $(target)
targetQuery.find('select.select2').select2({
theme: 'bootstrap-5',
Expand Down

0 comments on commit da783f8

Please sign in to comment.