I'm using Bootstrap4 alpha in my project, and for some investigations purposes, I'm trying to catch a JQuery event using DOM addEventListener()
.
The event is fired using the JQuery $("#mypanel").trigger("shown.bs.collapse")
function by bootstrap in it's collapse component.
If i try to catch it using the JQuery $("#mypanel").on("shown.bs.collapse", ... )
function, everything works just fine. But if i use $("#mypanel").get(0).addEventListener("shown.bs.collapse", ... )
on the corresponding DOM elements, the event is not "catched"
Are JQuery event system and standard DOM event system are NOT compatibles?
One thing that make me think they are actually incompatible, is that if I use the Chrome monitorEvents()
function to track the "shown.bs.collapse" event, it simply do not appear.
Any feedback about that is welcome.
Clément