Skip to content

Commit

Permalink
Add container to templateResult
Browse files Browse the repository at this point in the history
This closes select2#3222.
  • Loading branch information
kevin-brown committed Nov 23, 2015
1 parent 7e3d4fb commit dc516e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/select2/results.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit dc516e7

Please sign in to comment.