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

Uncaught TypeError: Cannot read property 'Constructor' of undefined

Open srjahir32 opened this issue 8 years ago • 5 comments

I am using Angular 5 and Boostrap 4. Installed boostrap-select v1.13.0-beta. loading app shows below error. screenshot_10

I made sure that jQuery is being loaded before boostrap-select.js When I use boostrap-select v1.12, it does not show this error, but dropdown is not working with this version.

srjahir32 avatar Feb 27 '18 12:02 srjahir32

Can you link me to an example? Are you sure you're loading Bootstrap before bootstrap-select?

caseyjhol avatar Feb 28 '18 19:02 caseyjhol

@caseyjhol Actually I am using Bootstrap template with angular 5. And temaplate is using ng-Bootstrap. But even after that, I've added Boostrap CSS, JS and required supported js files before Bootstrap-select. And now it is working perfectly. By the way thanks for making it compatible with bootstrap 4.

srjahir32 avatar Mar 01 '18 04:03 srjahir32

Happy to hear you got it working!

caseyjhol avatar Mar 01 '18 04:03 caseyjhol

@caseyjhol , I am facing the same issue. Defining bootstrap-select version as $.fn.selectpicker.Constructor.BootstrapVersion = '4'; but it gives the above mentioned error. I am importing bootstrap before select - import 'bootstrap'; import 'bootstrap-select';

image

Bootstrap-select version - 1.13.18 JQuery version - 5.3.1

ghost avatar Nov 03 '20 08:11 ghost

Please take a look in https://github.com/snapappointments/bootstrap-select.

caseyjhol avatar Nov 03 '20 13:11 caseyjhol