select2 provides an option for you to limit the selections that are made by the user, I.E.:
Would only allow the user to select 3 items from the select2 dropdown.
The issue occurs when the user uses Ctrl to select multiple options - select2 doesn't limit the selections made when the user selects in this fashion.
Is there a way to check the selection limit whenever a CTRL-selection is made? Failing that can I disable the CTRL-select functionality? (I couldn't find an option for this in the docs..)
See my reproduction below. Try making more than 3 selections first by clicking them individually and then by CTRL-clicking them without closing the drop-down.