MDL-58409 core_form: needs clean in autocomplete element

This commit is contained in:
David Matamoros
2018-08-07 11:03:04 +02:00
parent 4bd4b46070
commit aba27d5317
2 changed files with 2 additions and 2 deletions
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -409,7 +409,7 @@ define(['jquery', 'core/log', 'core/str', 'core/templates', 'core/notification']
// Only create the item if it's new.
if (!found) {
var option = $('<option>');
option.append(tag);
option.append(document.createTextNode(tag));
option.attr('value', tag);
originalSelect.append(option);
option.prop('selected', true);