MM-60188 Stop rendering EmojiPickerOverlay inside of EditBox (#28017)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
4999c4a9c6
Коммит
c113cdbd9b
@@ -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}
|
||||
|
||||
Ссылка в новой задаче
Block a user