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

**URL:** <https://meta.discourse.org/t/preview-is-not-re-rendered-after-auto-completing-an-emoji-via-click/38900>\
**Category:** Bug\
**Created:** [2016年二月2日 12:47 UTC](https://meta.discourse.org/t/preview-is-not-re-rendered-after-auto-completing-an-emoji-via-click/38900 "2016-02-02T12:47:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)\
**Post date:** [2016年二月2日 12:47 UTC](https://meta.discourse.org/t/preview-is-not-re-rendered-after-auto-completing-an-emoji-via-click/38900/1 "2016-02-02T12:47:57Z")

</div>

Steps to reproduce:

1. Type `:bu`
2. _Click_ on `🐛 bug`

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

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

---

<div class="post-metadata">

**Author:** ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)\
**Post date:** [2016年二月2日 20:22 UTC](https://meta.discourse.org/t/preview-is-not-re-rendered-after-auto-completing-an-emoji-via-click/38900/3 "2016-02-02T20:22:45Z")

</div>

> [@fefrei](#):
>
> the preview still shows :bu instead

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

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2016年二月2日 21:35 UTC](https://meta.discourse.org/t/preview-is-not-re-rendered-after-auto-completing-an-emoji-via-click/38900/4 "2016-02-02T21:35:22Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)\
**Post date:** [2016年三月1日 20:18 UTC](https://meta.discourse.org/t/preview-is-not-re-rendered-after-auto-completing-an-emoji-via-click/38900/5 "2016-03-01T20:18:24Z")

</div>

Here’s a fix for it:

[https://github.com/discourse/discourse/commit/08e43588f6316e29bb6fe51c308712196f591fee](https://github.com/discourse/discourse/commit/08e43588f6316e29bb6fe51c308712196f591fee)

---

<div class="post-metadata">

**Author:** ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)\
**Post date:** [2016年三月1日 20:18 UTC](https://meta.discourse.org/t/preview-is-not-re-rendered-after-auto-completing-an-emoji-via-click/38900/6 "2016-03-01T20:18:31Z")

</div>


