Closed jakenoble closed 1 year ago
.on
is now .addEventListener
But it is not documented.
Which documentation were you looking at? addEventListener is documented in the README as well as the API on picmojs.com
https://picmojs.com/docs/usage/emoji-selection
const picker = createPicker();
picker.on('emoji:select', selection => {
console.log('Selected emoji: ', selection.emoji);
});```
Aha, thanks! Looks like I missed a spot. I’lol make sure it’s up to date, thanks!
Updated: https://picmojs.com/docs/usage/emoji-selection/
const picker = createPicker();
picker.addEventListener('emoji:select', selection => {
console.log('Selected emoji: ', selection.emoji);
});
How do you use the
on
event? I always getpicker.on is not a function
, the picker shows so it has worked up until the event.