Event data in 4.0.7


#1

Hello,

I came across a little problem switching from 4.0.6-rc.1 to 4.0.7 while using the ‘select2:close’ event.
In the 4.0.6-rc.1 version, I was able to access some information in the variable I’m logging below when I was selecting one option in my select.

$('#forward_email').on('select2:close', function (e) {
    console.log(e.params);
});

I used to see stuff like “e.params.originalSelect2Event” or “e.params.originalEvent”. Now in 4.0.7, “e.params” seems to be always empty. Is it supposed to be like that ?

Thanks for your help.
Have a nice day.