Issue #2665738 by droplet, zviryatko: jQuery Autocomplete applies "_renderItem" option only for first element on the page

8.2.x
Nathaniel Catchpole 2016-03-07 12:49:11 +09:00
parent 221ab60fd1
commit ec2819c2dd
1 changed files with 3 additions and 2 deletions

View File

@ -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) {