Currently working on a project with Bootstrap 5 (template-based) and encountered an issue while trying to add bootstrap-select (version 1.13.14) to the mix. The console is throwing these errors:
Uncaught TypeError: Cannot read properties of undefined (reading 'Constructor') ---- bootstrap-select.js:3133
The problematic line is as follows:
// get Bootstrap's keydown event handler for either Bootstrap 4 or Bootstrap 3
var bootstrapKeydown = $.fn.dropdown.Constructor._dataApiKeydownHandler || $.fn.dropdown.Constructor.prototype.keydown;
Due to this issue, the select element with class selectpicker is not displaying as expected.
Would appreciate any insights or suggestions. Thank you!