Add container to templateResult
This closes https://github.com/select2/select2/issues/3222.
This commit is contained in:
parent
7e3d4fb697
commit
dc516e7073
2
src/js/select2/results.js
vendored
2
src/js/select2/results.js
vendored
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user