MM-60188 Stop rendering EmojiPickerOverlay inside of EditBox (#28017)

Этот коммит содержится в:
Harrison Healey
2024-08-21 14:22:42 -04:00
коммит произвёл GitHub
родитель 4999c4a9c6
Коммит c113cdbd9b
2 изменённых файлов: 0 добавлений и 4 удалений

Просмотреть файл

@@ -463,7 +463,6 @@ const EditPost = ({editingPost, actions, canEditPost, config, channelId, draft,
}
};
const getEmojiContainerRef = useCallback(() => textboxRef.current, [textboxRef]);
const getEmojiTargetRef = useCallback(() => emojiButtonRef.current, [emojiButtonRef]);
let emojiPicker = null;
@@ -473,7 +472,6 @@ const EditPost = ({editingPost, actions, canEditPost, config, channelId, draft,
<>
<EmojiPickerOverlay
show={showEmojiPicker}
container={getEmojiContainerRef}
target={getEmojiTargetRef}
onHide={hideEmojiPicker}
onEmojiClick={handleEmojiClick}

Просмотреть файл

@@ -16,7 +16,6 @@ import EmojiPickerTabs from '../emoji_picker_tabs';
import type {PropsFromRedux} from './index';
export interface Props extends PropsFromRedux {
container?: () => ReactNode;
target: () => ReactNode;
onEmojiClick: (emoji: Emoji) => void;
onGifClick?: (gif: string) => void;
@@ -93,7 +92,6 @@ export default class EmojiPickerOverlay extends React.PureComponent<Props> {
show={show}
placement={this.props.placement ?? placement}
rootClose={!isMobileView}
container={this.props.container}
onHide={this.props.onHide}
target={target}
animation={false}