DEV: Allow emoji picker to disable popper for itself (#15256)
This commit is contained in:
parent
02245ce41f
commit
5e534e5897
|
@ -37,6 +37,7 @@ export default Component.extend({
|
||||||
hoveredEmoji: null,
|
hoveredEmoji: null,
|
||||||
isActive: false,
|
isActive: false,
|
||||||
isLoading: true,
|
isLoading: true,
|
||||||
|
usePopper: true,
|
||||||
|
|
||||||
init() {
|
init() {
|
||||||
this._super(...arguments);
|
this._super(...arguments);
|
||||||
|
@ -91,7 +92,7 @@ export default Component.extend({
|
||||||
const textareaWrapper = document.querySelector(
|
const textareaWrapper = document.querySelector(
|
||||||
".d-editor-textarea-wrapper"
|
".d-editor-textarea-wrapper"
|
||||||
);
|
);
|
||||||
if (!this.site.isMobileDevice && textareaWrapper) {
|
if (!this.site.isMobileDevice && this.usePopper && textareaWrapper) {
|
||||||
this._popper = createPopper(textareaWrapper, emojiPicker, {
|
this._popper = createPopper(textareaWrapper, emojiPicker, {
|
||||||
placement: "auto",
|
placement: "auto",
|
||||||
modifiers: [
|
modifiers: [
|
||||||
|
|
Loading…
Reference in New Issue