MDL-70075 core: Autocomplete selection should always have an active item
authorAndrew Nicols <andrew@nicols.co.uk>
Wed, 4 Nov 2020 03:24:04 +0000 (11:24 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Thu, 5 Nov 2020 01:05:38 +0000 (09:05 +0800)
commit27de77007b9d605fb1adc349c047b5a238a8ac9a
treec16b58b1ab0ffb8f899e5f4368cdd210a46c3eb0
parent34d1c236684cda2680370ebada9ed896359fbf26
MDL-70075 core: Autocomplete selection should always have an active item

Ensure that there is always one active element in the list of selected
autocomplete elements.

Without this we have issues beacuse clicking on the link makes the first
one active if one is not already active, and this turns a click event
into a drag event, which means that it is not deleted.
lib/amd/build/form-autocomplete.min.js
lib/amd/build/form-autocomplete.min.js.map
lib/amd/src/form-autocomplete.js