Fixed bootstrap-selectpickers on bootstrap 5

This commit is contained in:
Jan Böhmer 2022-07-24 20:23:12 +02:00
parent 5d6f244e71
commit 489f4b939a
5 changed files with 24 additions and 24 deletions

View file

@ -1,6 +1,9 @@
const bootstrap = window.bootstrap = require('bootstrap'); // without this bootstrap-select crashes with `undefined bootstrap`
require('bootstrap-select/js/bootstrap-select'); // we have to manually require the working js file
import {Controller} from "@hotwired/stimulus";
import "bootstrap-select";
import 'bootstrap-select/dist/css/bootstrap-select.css'
//import "bootstrap-select/js/bootstrap-select";
import 'bootstrap-select/sass/bootstrap-select.scss';
export default class extends Controller {
connect() {