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]);
|
const getEmojiTargetRef = useCallback(() => emojiButtonRef.current, [emojiButtonRef]);
|
||||||
|
|
||||||
let emojiPicker = null;
|
let emojiPicker = null;
|
||||||
@@ -473,7 +472,6 @@ const EditPost = ({editingPost, actions, canEditPost, config, channelId, draft,
|
|||||||
<>
|
<>
|
||||||
<EmojiPickerOverlay
|
<EmojiPickerOverlay
|
||||||
show={showEmojiPicker}
|
show={showEmojiPicker}
|
||||||
container={getEmojiContainerRef}
|
|
||||||
target={getEmojiTargetRef}
|
target={getEmojiTargetRef}
|
||||||
onHide={hideEmojiPicker}
|
onHide={hideEmojiPicker}
|
||||||
onEmojiClick={handleEmojiClick}
|
onEmojiClick={handleEmojiClick}
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ import EmojiPickerTabs from '../emoji_picker_tabs';
|
|||||||
import type {PropsFromRedux} from './index';
|
import type {PropsFromRedux} from './index';
|
||||||
|
|
||||||
export interface Props extends PropsFromRedux {
|
export interface Props extends PropsFromRedux {
|
||||||
container?: () => ReactNode;
|
|
||||||
target: () => ReactNode;
|
target: () => ReactNode;
|
||||||
onEmojiClick: (emoji: Emoji) => void;
|
onEmojiClick: (emoji: Emoji) => void;
|
||||||
onGifClick?: (gif: string) => void;
|
onGifClick?: (gif: string) => void;
|
||||||
@@ -93,7 +92,6 @@ export default class EmojiPickerOverlay extends React.PureComponent<Props> {
|
|||||||
show={show}
|
show={show}
|
||||||
placement={this.props.placement ?? placement}
|
placement={this.props.placement ?? placement}
|
||||||
rootClose={!isMobileView}
|
rootClose={!isMobileView}
|
||||||
container={this.props.container}
|
|
||||||
onHide={this.props.onHide}
|
onHide={this.props.onHide}
|
||||||
target={target}
|
target={target}
|
||||||
animation={false}
|
animation={false}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user