Closed ilkiri23 closed 8 months ago
This is a good idea and I'll add it soon unless you want to make a PR.
What do you also think about adding cancelable: true
option by default?
What do you also think about adding
cancelable: true
option by default?
They already are as far as I know. Check out Surreal's halt()
for a convenient way to stop propagation / prevent default.
Latest 1.1.6 adds optional event details, and send()
now aliases trigger()
.
It would be great if we could pass payload to the
trigger
function (something liketrigger('click', { value: 42 })
) and get it in the handlerIf you agree with that, I can create a PR