Yup, it is a hack only… The standard EmojiPicker
in Discourse uses module-global variables to store the picker to popup. Any time the reply window is opened, it gets overwritten to point to a different emoji picker, throwing everything off.
I’ve opened an issue for this:
When the reply window is open, the variable points to the standard EmojiPicker
. When you press the retort button, my fix forced-overwrite the variable to point to the RetortEmojiPicker
. But if the reply window (and the standard EmojiPicker
) is still open, obviously two emoji pickers together are going to make things very interesting… especially when there is only one module-global variable to point to one of them.