mirror of
https://github.com/moodle/moodle.git
synced 2025-04-15 05:25:08 +02:00
Merge branch 'MDL-58409-master_needs_clean_in_autocomplete_element' of https://github.com/dravek/moodle
This commit is contained in:
commit
326792694e
2
lib/amd/build/form-autocomplete.min.js
vendored
2
lib/amd/build/form-autocomplete.min.js
vendored
File diff suppressed because one or more lines are too long
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user