You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had the same issue and found that select2 is adding the following class select2-results__option--selectable to options so it can be selected.
By reviewing the js code, I found that class maybe removed for some reasons:
If id is missing from response (that was my case):
select2 expects a "id" key to be returned in results which is being used as the option value that will be sent in post body:
if (data.id == null) {
option.classList.remove('select2-results__option--selectable');
}
So your endpoint response fomat MUST be as the following:
#Steps to reproduce the issue
Expected behavior and actual behavior
When I follow those steps, I see...
https://prnt.sc/rwykv9
I can't select the list, and the list background color is yellow
I was expecting...
I can select the list, and the list background color is white
Environment
Browsers
Operating System
Libraries
The text was updated successfully, but these errors were encountered: