Items cannot be unselected by clicking on them in the dropdown of a multi-select with an AJAX data source.
Version
4.1.0
Steps to reproduce
- Create a multi-select with an AJAX data source. A minimal example can be found here, based wholly on the official docs
- Type in a searchterm to see a list
- Select anything
- Type in the same searchterm as before
- In the dropdown, click on the item you already have selected
- The item remains selected (despite an select2:unselect event triggering)
Expected Behaviour
The item should get unselected.