diff --git a/src/js/select2/results.js b/src/js/select2/results.js index bca8d2d3..1e49263c 100644 --- a/src/js/select2/results.js +++ b/src/js/select2/results.js @@ -501,7 +501,7 @@ define([ var template = this.options.get('templateResult'); var escapeMarkup = this.options.get('escapeMarkup'); - var content = template(result); + var content = template(result, container); if (content == null) { container.style.display = 'none';