bootstrap-select icon indicating copy to clipboard operation
bootstrap-select copied to clipboard

Select not responding – Rails 6

Open redbassett opened this issue 3 years ago • 0 comments

I have seen other issues regarding loading the javascript for bootstrap-select via webpacker and rails, however the solutions in these issues aren't fully resolving my issue.

I know I am getting the javascript loaded, both because the select HTML is being modified to the correct styling and because I was getting an error in the console until I changed the loading order of jQuery. Now I see no errors, but absolutely nothing happens when I click the select… What is the best way to troubleshoot bootstrap-select to ensure it is seeing click events?

application.js:

let jQuery = require("jquery");

global.$ = global.jQuery = jQuery;
window.$ = window.jQuery = jQuery;

import "@popperjs/core"
import "bootstrap"
import "bootstrap-select"

redbassett avatar Jan 20 '22 00:01 redbassett