I'm in need of removing a .select dropdown CSS property (max-height).
_______________
I understand this can be done by adjusting the CSS like so:
.select2-container--classic .select2-results > .select2-results__options {
max-height: none !important;
overflow-y: none !important;
}
_______________
HOWEVER...This will change it for all .select2 containers.
How do I target a specific .select2 dropddown?
I've tried targeting the custom CSS class I used to initiate the select2 (.mySelect2) but this does not work:
.mySelect2 .select2-container--classic .select2-results > .select2-results__options {
max-height: none !important;
overflow-y: none !important;
}
Is there a solution to target this CSS only on what is needed?
Thanks
> j