Closed BenLubar closed 8 years ago
You know... I've noticed this for quite awhile but it never really occurred to me to fix it, since it's only a minor issue. I suppose if you see it enough times you stop noticing it :laughing:
To fix, either call .trigger('input')
on the textarea, or require(['composer/preview'])
and call .render(), passing in the textarea element
I've merged and fixed (the variable $textarea
actually was no jQuery
object o_O).
However, this just regards clicks within the modal.
For the original demonstration (trigger update after autocompletion) I think this belongs into the core (for chats, into the default composer for posts) @julianlam . EDIT: xD there is no preview within chats, so nvm on that part ;)
According to this line you could watch for either of those events in addition to "input"
.
Demonstration: https://www.youtube.com/watch?v=wkZggOpw0bo