Fix ComposeForm collapsing when clicking within emoji picker
This commit is contained in:
parent
a8ebbc15c8
commit
8534cabc0a
2 changed files with 2 additions and 3 deletions
|
@ -124,7 +124,7 @@ class ComposeForm extends ImmutablePureComponent {
|
|||
// FIXME: Make this less brittle
|
||||
this.getClickableArea(),
|
||||
document.querySelector('.privacy-dropdown__dropdown'),
|
||||
document.querySelector('.emoji-picker-dropdown__menu'),
|
||||
document.querySelector('em-emoji-picker'),
|
||||
document.getElementById('modal-overlay'),
|
||||
].some(element => element?.contains(e.target));
|
||||
}
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import classNames from 'classnames';
|
||||
import { supportsPassiveEvents } from 'detect-passive-events';
|
||||
import React, { useEffect, useState, useLayoutEffect } from 'react';
|
||||
import { createPortal } from 'react-dom';
|
||||
|
@ -208,7 +207,7 @@ const EmojiPickerDropdown: React.FC<IEmojiPickerDropdown> = ({ custom_emojis, fr
|
|||
|
||||
{createPortal(
|
||||
<div
|
||||
className={classNames({ 'z-1000': true })}
|
||||
className='z-50'
|
||||
ref={setPopperElement}
|
||||
style={style}
|
||||
{...attributes.popper}
|
||||
|
|
Loading…
Reference in a new issue