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 00:55:50 +0000 (08:55 +0800)
commit7d786c79683d951a3e489082d09359f68ca290df
treec498e4274b85b24a9980ef9ed005f52ddb176af2
parenta88838c25f47bc158e6f4bcdada0fac62514c59e
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