I'm using Saul theme in an MVC application. select2 is not initiated. Based on the documentation it's bundled in the global plugin.
Everything work fine in the page that I'm working on it, but select2 is not initiated. I can see all the related javascript and css code in plugins.bundle.css and .js but it doesn't work. Can you help me fidn out what I'm missing?
In the intialization section I read that there are some SCSS files in sass folder. shoudl I import src folder to my solution as well?
Hi,
Can you double-check the original Saul HTML template as Select2 works fine there.
May I know which build method you are using? Gulp or Webpack? if you need any further help can you please share some screenshots using https://imgur.com/ where we can see the issue in your browser console?
Regards.
Thanks for your reply. Issue is fixed.
Hey Simon,
I am curious what your solution was? I am using the keen theme "Craft", but running into the same issue.
Cheers,
Ian
Hi Ian
You don't need to import any further library. Select2 must be initiated automatically by ~/assets/plugins/hlobal/plugins.bundle.js
Hope that help
Hi Ian,
You can find select2 usage examples in Craft documentation.
Regards,
Lauris Stepanovs,
Keenthemes Support Team
Discover the stunning bridal shower dresses by Ammara Khan, perfect for your barat or bridal shower. Explore our couture collection and find the dress of your dreams.
Shop the latest collection of stylish and comfortable loafer shoes for women at ECS. Discover our wide range of designs and choose your perfect pair today.