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

Solution: Emojis have a extra character and then disappear #208 #343

Open
JLLeitschuh opened this issue Mar 17, 2023 · 0 comments · May be fixed by #344
Open

Solution: Emojis have a extra character and then disappear #208 #343

JLLeitschuh opened this issue Mar 17, 2023 · 0 comments · May be fixed by #344

Comments

@JLLeitschuh
Copy link

One solution that I saw in a codepen that handled this nicely was typewriter-effect.

That library takes an argument, stringSplitter: https://github.com/tameemsafi/typewriterjs/blob/b481c6dd4e0ddfd801ac882e460785d8cd8d98e8/index.d.ts#L66-L71

If you combine that with grapheme-splitter, you can split the strings along the emoji boundaries.

Here's an example
https://codesandbox.io/s/github-profile-forked-xo3b7m?file=/src/main.js

@JLLeitschuh JLLeitschuh linked a pull request Mar 17, 2023 that will close this issue
3 tasks
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

Successfully merging a pull request may close this issue.

1 participant