Preview is not re-rendered after auto-completing an emoji via click

Steps to reproduce:

  1. Type :bu
  2. Click on :bug: bug

The text gets auto-completed to :bug:, but the preview still shows :bu instead of :bug:.

This issue does not occur when the auto-completion is triggered with enter, and typing the character refreshes the preview.

3 Likes

Just tried it. It took a while for the preview pane to update, but it did after a few seconds.

I actually agree this is a minor bug, preview should re-render on select of any autocomplete @eviltrout

Here’s a fix for it:

https://github.com/discourse/discourse/commit/08e43588f6316e29bb6fe51c308712196f591fee

3 Likes