Skip to content

Commit

Permalink
Adding "originalEvent" to "close" trigger args (select2#6079)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlphaSolutions-jbj authored and arkonan committed May 19, 2023
1 parent 8b39dd1 commit 8ee316c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/js/select2/results.js
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,10 @@ define([
data: data
});
} else {
self.trigger('close', {});
self.trigger('close', {
originalEvent: evt,
data: data
});
}

return;
Expand Down

0 comments on commit 8ee316c

Please sign in to comment.