Skip to content

Commit

Permalink
feat(emoji): updated emoji suggest popup logic (#462)
Browse files Browse the repository at this point in the history
  • Loading branch information
makhnatkin authored Nov 7, 2024
1 parent 81b3543 commit 844667d
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import React from 'react';
import {List, Popup, PopupPlacement} from '@gravity-ui/uikit';

import {cn} from '../../../../classname';
import {i18n} from '../../../../i18n/suggest';
import {ErrorLoggerBoundary} from '../../../../react-utils/ErrorBoundary';
import {AutocompletePopupProps} from '../../../../utils/autocomplete-popup';

Expand Down Expand Up @@ -41,7 +40,7 @@ export const EmojiSuggestComponent: React.FC<EmojiSuggestComponentProps> = ({

return (
<Popup
open
open={Boolean(items.length)}
anchorRef={{current: anchor}}
placement={placement}
onEnterKeyDown={onEnterKeyDown}
Expand All @@ -54,7 +53,6 @@ export const EmojiSuggestComponent: React.FC<EmojiSuggestComponentProps> = ({
items={items as EmojiDef[]}
sortable={false}
filterable={false}
emptyPlaceholder={i18n('empty-msg')}
itemHeight={ITEM_HEIGHT}
itemsHeight={calcListHeight(items.length)}
renderItem={renderItem}
Expand Down

0 comments on commit 844667d

Please sign in to comment.