FIX: close picker on emoji selection when on mobile device (#10516)

FIX: close picker on emoji selection when on mobile device (#10516)

diff --git a/app/assets/javascripts/discourse/app/components/emoji-picker.js b/app/assets/javascripts/discourse/app/components/emoji-picker.js
index 3811526..c2f105e 100644
--- a/app/assets/javascripts/discourse/app/components/emoji-picker.js
+++ b/app/assets/javascripts/discourse/app/components/emoji-picker.js
@@ -195,6 +195,10 @@ export default Component.extend({
     if (!img.parentNode.parentNode.classList.contains("recent")) {
       this._trackEmojiUsage(code);
     }
+
+    if (this.site.isMobileDevice) {
+      this.onClose();
+    }
   },
 
   @action

GitHub sha: 265d8bc1

1 Like

This commit appears in #10516 which was merged by jjaffeux.