Merge branch 'MDL-58409-34_needs_clean_in_autocomplete_element' of https://github.com/dravek/moodle into MOODLE_34_STABLE

This commit is contained in:
Eloy Lafuente (stronk7)
2018-08-14 17:50:55 +02:00
2 changed files with 2 additions and 2 deletions
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -403,7 +403,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);