question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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. image how can i fix this?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
peteruithovencommented, Feb 1, 2021

This really should be documented on: https://select2.org/configuration/options-api

2reactions
preciado04commented, Jan 24, 2022

Thanks @rh0,

Adding “select2.full.js” file, fixed the issue.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found