DEV: Allow emoji picker to disable popper for itself (#15256)

This commit is contained in:
Mark VanLandingham 2021-12-10 14:45:22 -06:00 committed by GitHub
parent 02245ce41f
commit 5e534e5897
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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: [