-
-
Notifications
You must be signed in to change notification settings - Fork 461
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
fix: Emoji suggestion slash menu does not display #984
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@jkcs is attempting to deploy a commit to the TypeCell Team on Vercel. A member of the Team first needs to authorize it. |
Hi, thanks for this PR! It looks good, but I'm seeing a bug where if you open the emoji picker (with the : key or slash menu), start typing, and then keep hitting backspace, the whole picker briefly flashes after clearing the last character of the query. |
Thank you for your testing and review. I have fixed this bug, pls take another look. Can we extend a state in the SuggestionPlugin, such as |
The difference in UX is that Notion adds the Hmm, I think in that case we want to extend
That should mean we don't have to change the plugin state. Do you wanna give that a shot? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing this!
Should we give some more thought about naming conventions? When reviewing, to me payload
seems quite generic, and also fromUserInput
is not very clear what it does. I know fromUserInput
was already there, but maybe we should rename it to make more clear what it does?
What do you think of |
|
Tbh I think we can do with just |
# Conflicts: # packages/core/src/editor/BlockNoteEditor.ts # packages/core/src/extensions/SuggestionMenu/getDefaultSlashMenuItems.ts
ready to merge |
Great! Btw @jkcs , are you on discord? |
of course, the name is the same as the github username |
close #975
Currently unable to use ":" to open emoji, because it will cause ":" not to be cleared. Can we add a new
pluginState
to mark it?file:
packages/core/src/extensions/SuggestionMenu/SuggestionPlugin.ts