No select2/compat/dropdownCss
See original GitHub issue- select2 version: 4.0.2
I want to add class in dropdownCss. my usage:
$('.js-select2').select2({dropdownCssClass: 'select-dropdown'});
and
import 'select2/dist/js/select2.full.js'; import 'select2/dist/js/i18n/zh-CN';
result in web page(pc), it works fine. However in H5(mobile) it have Uncaught Error. how can i fix this?
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
No select2/compat/containerCss - Stack Overflow
I'm using Node.js to bundle my files and am using Select2 as a require() in ...
Read more >Error: No select2/compat/dropdownCss - WordPress.org
When editing a custom post type (for Events via The Events Calendar plugin) the following error shows in the Console and the Add...
Read more >Select2 JS Error - Brizy Help Center
It's worked great for years - no conflicts or crashes, and generates ... The exact error is "Uncaught Error: No select2/compat/dropdownCss ...
Read more >Uncaught Error: No select2/compat/initSelection [#2966908]
Getting a js error when using select2bef: Uncaught Error: No select2/compat/initSelection. Closed (cannot reproduce). Project: Select2 Boxes.
Read more >SelectAdapter - The jQuery replacement for select boxes
Select2 now supports the <select> element for all options, so it is no longer required to use <input /> elements with Select2. AMD...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This really should be documented on: https://select2.org/configuration/options-api
Thanks @rh0,
Adding “select2.full.js” file, fixed the issue.