From 5e534e58973730ad43026883821966a873e8477a Mon Sep 17 00:00:00 2001 From: Mark VanLandingham Date: Fri, 10 Dec 2021 14:45:22 -0600 Subject: [PATCH] DEV: Allow emoji picker to disable popper for itself (#15256) --- .../javascripts/discourse/app/components/emoji-picker.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/app/components/emoji-picker.js b/app/assets/javascripts/discourse/app/components/emoji-picker.js index 1d6867a06bc..9fab42b390f 100644 --- a/app/assets/javascripts/discourse/app/components/emoji-picker.js +++ b/app/assets/javascripts/discourse/app/components/emoji-picker.js @@ -37,6 +37,7 @@ export default Component.extend({ hoveredEmoji: null, isActive: false, isLoading: true, + usePopper: true, init() { this._super(...arguments); @@ -91,7 +92,7 @@ export default Component.extend({ const textareaWrapper = document.querySelector( ".d-editor-textarea-wrapper" ); - if (!this.site.isMobileDevice && textareaWrapper) { + if (!this.site.isMobileDevice && this.usePopper && textareaWrapper) { this._popper = createPopper(textareaWrapper, emojiPicker, { placement: "auto", modifiers: [