select2-multi-checkboxes icon indicating copy to clipboard operation
select2-multi-checkboxes copied to clipboard

No clear all selection button after migrating from Select2 3.

Open arning opened this issue 4 years ago • 2 comments

After updating to Select2 4.* there is no 'Clear Selection Botton (x)' on the right side of the dropdown. allowClear: true does not work. It also does not work for the amd example.

Apart from that it is working wonderfully.

Cheers Peter

arning avatar Sep 14 '21 11:09 arning

Here is a jsfiddle that shows the problem: https://jsfiddle.net/9jLdxbyc/

The original select2 shows the 'clear selection (x)' button, allowClear works.

The .select2-multiple does not show that button, although allowClear is set to true.

arning avatar Sep 28 '21 07:09 arning

Actually, the amd-based version was done wrong. I'll repair it. here is the demo that shows how it should work. (beside of autopen on close) https://jsfiddle.net/wasikuss/mkq1s4zy/

wasikuss avatar Aug 10 '22 18:08 wasikuss