Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some emojis are not working #418

Open
lexpierini opened this issue Jun 17, 2024 · 8 comments
Open

Some emojis are not working #418

lexpierini opened this issue Jun 17, 2024 · 8 comments

Comments

@lexpierini
Copy link

lexpierini commented Jun 17, 2024

Some emojis are not working. Follow the codes: '1fae0', '1f972', '1fae2', '1fae3', '1fae1', '1fae5', '1f978', '1fae4', '1f979'.

Screenshot 2024-06-17 141602

"react": "^18.2.0",
"emoji-picker-react": "^4.10.0",

@ealush
Copy link
Owner

ealush commented Jun 29, 2024

What do you mean by not working?

@lexpierini
Copy link
Author

lexpierini commented Jul 4, 2024

What do you mean by not working?

Note that the emoji property does not display the corresponding emoji, but a square with a question mark. This happens with many other emojis. I also noticed that the country flags only display the first two letters. For example, flag Canada only displays "ca"

Screenshot 2024-07-04 083530

Screenshot 2024-07-04 083419

@ealush
Copy link
Owner

ealush commented Jul 4, 2024 via email

@lexpierini
Copy link
Author

lexpierini commented Jul 4, 2024

Would it be possible to have a property, like hiddenEmojis, but which hides an entire caterogy? For example, hide the flag category without me having to insert all the codes in the array of the hiddenEmojis property.

@ealush
Copy link
Owner

ealush commented Jul 4, 2024

In the current config you'd need to pass the category config prop and exclude the flags category specifically , but you don't need to pass each flag individually

@lexpierini
Copy link
Author

ok, in this case using the categories property. Thank you.

In the case of the emojis in the first image, do you think it's due to the rendering of the operating system as well, in this case Windows?

codes: '1fae0', '1f972', '1fae2', '1fae3', '1fae1', '1fae5', '1f978', '1fae4', '1f979'.

@jasim-n
Copy link

jasim-n commented Nov 14, 2024

was there any solution for this issue

@lexpierini
Copy link
Author

lexpierini commented Nov 14, 2024

was there any solution for this issue

The only alternative was to hide the emojis with problems. The problem with this alternative is that it becomes difficult to check all emojis.

const hiddenEmojis = useMemo(() => {
   return ['1fae0', '1f972', '1fae2', '1fae3', '1fae1', '1fae5', '1f978', '1fae4',
     '1f979', "1fab9", "1faba", "1fab1", "1f43b-200d-2744-fe0f"
   ]
 }, [])

<EmojiPicker
  onEmojiClick={onEmojiClick}
  hiddenEmojis={hiddenEmojis}
  categories={emojisCategoriesPermited}
/>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants