Skip to content
Snippets Groups Projects
Commit ec2819c2 authored by catch's avatar catch
Browse files

Issue #2665738 by droplet, zviryatko: jQuery Autocomplete applies...

Issue #2665738 by droplet, zviryatko: jQuery Autocomplete applies "_renderItem" option only for first element on the page
parent 221ab60f
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -222,8 +222,9 @@
});
// Use jQuery UI Autocomplete on the textfield.
$autocomplete.autocomplete(autocomplete.options)
.data('ui-autocomplete')
._renderItem = autocomplete.options.renderItem;
.each(function() {
$(this).data('ui-autocomplete')._renderItem = autocomplete.options.renderItem;
});
}
},
detach: function (context, settings, trigger) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment