ealush / emoji-picker-react

The most popular React Emoji Picker
https://ealush.com/emoji-picker-react/
MIT License
1.09k stars 177 forks source link

Bug Emoji Picker load imagem #330

Open williank opened 1 year ago

williank commented 1 year ago

When typing some text in the application the picker emoji is loading an image causing "lag" in the application. In attach print my DevTools Browser bug report

williank commented 1 year ago

With each letter I type, the system tries to load that image. Does not occur when removing emoji picker. follow me code

<ButtonDropdown className="emoji-dropdown" direction="up" isOpen={isOpen} toggle={toggle}>
    <DropdownToggle id="emoji" color="link" className="text-decoration-none font-size-16 btn-lg waves-effect">
    <i className="nav-icon fa-regular fa-face-smile fa-xl" aria-hidden="true"></i>
    </DropdownToggle>
    <DropdownMenu className="dropdown-menu-end">
        <EmojiPicker  locale="pt" searchPlaceHolder='Pesquise seu emoji' onEmojiClick={(emojiObject)=> settextMessage((prevMsg)=> prevMsg + emojiObject.emoji)} />
    </DropdownMenu>
</ButtonDropdown>

<UncontrolledTooltip target="emoji" placement="top">
    Emojis
</UncontrolledTooltip>
madhavdutta commented 1 year ago

Yes i am also getting this error.