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
global trigger does not pass arguments along with the object
Version
v3001.0.6
To Reproduce
Steps to reproduce the behavior:
//following code shows reproduction of bug
// use explicit trigger for every element - will log 12 into console
add(["a"])
onMouseMove(() => get("a").forEach(e => e.trigger("abc", 12)))
on("abc", "a", (obj, numbers) => console.log(numbers));
// use global trigger from last feature will log "undefined"
add(["b"])
onMouseMove(() => trigger("abc", "b", 1234))
on("abc", "b", (obj, numbers) => console.log(numbers));
Expected behavior
global trigger passes arguments as it seems to do
Screenshots
possible place where all go wrong - last feature commit src/events/globalEvents.ts
(...args: any[] should be used, isn't it?)
The text was updated successfully, but these errors were encountered:
Describe the bug
global trigger does not pass arguments along with the object
Version
v3001.0.6
To Reproduce
Steps to reproduce the behavior:
//following code shows reproduction of bug
// use explicit trigger for every element - will log 12 into console
add(["a"])
onMouseMove(() => get("a").forEach(e => e.trigger("abc", 12)))
on("abc", "a", (obj, numbers) => console.log(numbers));
// use global trigger from last feature will log "undefined"
add(["b"])
onMouseMove(() => trigger("abc", "b", 1234))
on("abc", "b", (obj, numbers) => console.log(numbers));
Expected behavior
global trigger passes arguments as it seems to do
Screenshots
possible place where all go wrong - last feature commit src/events/globalEvents.ts
(...args: any[] should be used, isn't it?)
The text was updated successfully, but these errors were encountered: