1
0
mirror of synced 2024-11-22 13:06:08 +03:00

Add container to templateResult

This closes https://github.com/select2/select2/issues/3222.
This commit is contained in:
Kevin Brown 2015-11-23 18:40:50 -05:00
parent 7e3d4fb697
commit dc516e7073

View File

@ -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';