This change check first if the select2-container has a ".select2-choice" or ".select2-choices" css definition.
I had to implement this because my select2 multiple select field had instead of ".select2-choice" a ".select2-choices" css definition, and with this code it works.
This change check first if the select2-container has a ".select2-choice" or ".select2-choices" css definition.
I had to implement this because my select2 multiple select field had instead of ".select2-choice" a ".select2-choices" css definition, and with this code it works.