We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e10f3b7 commit 2b9c8b0Copy full SHA for 2b9c8b0
1 file changed
src/js/select2/dropdown/selectOnClose.js
@@ -8,12 +8,12 @@ define([
8
9
decorated.call(this, container, $container);
10
11
- container.on('close', function (evt) {
12
- self._handleSelectOnClose(evt);
+ container.on('close', function () {
+ self._handleSelectOnClose();
13
});
14
};
15
16
- SelectOnClose.prototype._handleSelectOnClose = function (evt) {
+ SelectOnClose.prototype._handleSelectOnClose = function () {
17
var self = this;
18
19
var $highlightedResults = this.getHighlightedResults();
@@ -23,7 +23,6 @@ define([
23
}
24
25
self.trigger('select', {
26
- originalEvent: evt,
27
data: $highlightedResults.data('data')
28
29
0 commit comments