How to automatically increase the height of select2 input box (multiple)

后端 未结 2 530
旧时难觅i
旧时难觅i 2020-12-16 19:13

I have a select2 input box for multiselet option in which, user can select as many options as he wants, if the selected options are occupying more space than available width

2条回答
  •  天命终不由人
    2020-12-16 19:37

    Add this CSS to select2-selection--multiple class:

    .select2-selection--multiple{
        overflow: hidden !important;
        height: auto !important;
    }
    

    Updated Fiddle, I hope it works for you, Thanks.

提交回复
热议问题