You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JQueryEvent extends org.scalajs.dom.Event and thus should be handled by handlers declared with Element.addEventListener but this does not seem to be the case.
"stop propagation of JQueryEvents when Events stop their propagation" in {
valelement= div().render
valwrapperElement= div(element).render
element.addEventListener(EventName.click, { event: Event=> event.stopImmediatePropagation() })
varcounter=0
jQ(wrapperElement).on(EventName.click, (_, _) => counter +=1)
jQ(element).trigger(EventName.click)
counter should be(0)
}
I've added a test checking that behaviour and it fails and IMHO it shouldn't. Commit: 662ac1d