Closed yawerhussain42 closed 4 years ago
Did you find a solution to this problem? I also have the same.
It seems that "setupButton" on line 237 is not fired on dynamically added forms, then the "On Click" event is not registered for this new "emoji-picker"
Ok, when you dynamically create an input field, to be used for emoji use this workflow:
Like this:
form.append('<input type="text" id="' + 'chatInput-' + uid +'"/>');
document.getElementById('chatInput-' + uid).setAttribute('data-emojiable', true);
window.emojiPicker.discover();
When you use JQuery to set attributes, discover function won't find your input field
Hope it helps
I have two text areas in a single page where i want to use these emojis but it doesn't show up to the second place.