# Clicking next/previous in Emoji set closes the plug-in window

**URL:** https://meta.discourse.org/t/clicking-next-previous-in-emoji-set-closes-the-plug-in-window/64793
**Category:** Bug
**Created:** [June 20, 2017, 9:03am UTC](https://meta.discourse.org/t/clicking-next-previous-in-emoji-set-closes-the-plug-in-window/64793 "2017-06-20T09:03:54Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![editorsean](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/editorsean/32/74056_2.png) [@editorsean](https://meta.discourse.org/u/editorsean)
#### Post date: [June 20, 2017, 9:03am UTC](https://meta.discourse.org/t/clicking-next-previous-in-emoji-set-closes-the-plug-in-window/64793/1 "2017-06-20T09:03:54Z")

</div>

On our forum, we use the Babble chatbox plug-in. In its compose window, there is a button to insert an emoji, which brings up the discourse emoji set.

When I click the next or previous buttons at the lower right to cycle through the pages of emojis, the chatbox closes, losing what I typed. This also occurs when I click the background as illustrated by the left red arrow below:

 ![](https://global.discourse-cdn.com/meta/original/3X/4/1/41586fc3891e0711cffb0df894a2147493d692c6.png)

As far as I can tell, this issue appears to be caused by the “.emoji-modal”, “.emoji-modal .nav .next a” and “.emoji-modal .nav .prev a” mouse click events not returning false, while the “.emoji-page a” events do return false.

As a crude workaround, I added the following script to our forum’s “/body” to temporarily fix the issue:

```
$('body').mousedown(function() {
  $('.emoji-modal, .emoji-modal .nav a').click(function(){return false;});
});

```

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [June 20, 2017, 1:24pm UTC](https://meta.discourse.org/t/clicking-next-previous-in-emoji-set-closes-the-plug-in-window/64793/2 "2017-06-20T13:24:17Z")

</div>

@j.jaffeux is re-doing this dialog so it will no longer be a modal … which in turn will make this bug a non bug 🙃

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [July 21, 2017, 5:52pm UTC](https://meta.discourse.org/t/clicking-next-previous-in-emoji-set-closes-the-plug-in-window/64793/4 "2017-07-21T17:52:17Z")

</div>

Should be good to close 😉

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [July 21, 2017, 5:52pm UTC](https://meta.discourse.org/t/clicking-next-previous-in-emoji-set-closes-the-plug-in-window/64793/5 "2017-07-21T17:52:21Z")

</div>


