MDL-67447 form: Fix the duplicate autocomplete selection node
authorDavid Mudrák <david@moodle.com>
Wed, 4 Dec 2019 08:10:51 +0000 (09:10 +0100)
committerDavid Mudrák <david@moodle.com>
Sat, 25 Jan 2020 04:39:01 +0000 (05:39 +0100)
commit7630b42232ac54e0d5f3c0d39fa0420e63410454
treed6d703f5747ee5f9918e054858df3325690f9ead
parent4e41ace0bebfd90908b4d3f0cb9ac9800fb1e696
MDL-67447 form: Fix the duplicate autocomplete selection node

When the autocomplete selection is updated, the content of the selection
wrapper is replaced with the new list of selected items. We must replace
only the content of the selection wrapper and not to nest it into
itself.
lib/amd/build/form-autocomplete.min.js
lib/amd/build/form-autocomplete.min.js.map
lib/amd/src/form-autocomplete.js
lib/templates/form_autocomplete_selection.mustache
lib/templates/form_autocomplete_selection_items.mustache [new file with mode: 0644]