fixed issue where it automatically scroll to top when custom emoji are loaded (#29608)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
cc33287dde
Коммит
e1a582395f
@@ -122,7 +122,10 @@ const EmojiPicker = ({
|
||||
|
||||
const [updatedCategoryOrEmojisRows, updatedEmojiPositions] = createCategoryAndEmojiRows(allEmojis, categories, filter, userSkinTone);
|
||||
|
||||
selectFirstEmoji(updatedEmojiPositions);
|
||||
if (activeCategory !== 'custom') {
|
||||
selectFirstEmoji(updatedEmojiPositions);
|
||||
}
|
||||
|
||||
setCategoryOrEmojisRows(updatedCategoryOrEmojisRows);
|
||||
setEmojiPositionsArray(updatedEmojiPositions);
|
||||
throttledSearchCustomEmoji.current(filter, customEmojisEnabled);
|
||||
|
||||
Ссылка в новой задаче
Block a user