-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Bug: Mentions triggered somehow for list types #4976
Comments
I think we should just disable the capital-word trigger for the playground mentions plugin. It's annoying and trivial to implement if someone wants to do it in their own editor. |
Yeah this is the problem. What should ı do to disable it in my own editor ? @acywatson |
I think we can disable it with returning the "match" instead of using the export const getPossibleQueryMatch = (text: string): MenuTextMatch | null => {
const match = checkForAtSignMentions(text, 1);
return match;
return match === null ? checkForCapitalizedNameMentions(text, 3) : match;
}; |
yep, that works!
|
Nice! Thanks! |
Thanks a lot!! |
Lexical version: "@lexical/react": "^0.12.0",
Steps To Reproduce
-- Make sure that you are using the mentions plugin --
Screen.Recording.2023-09-07.at.13.36.08.mov
Link to code example:
https://playground.lexical.dev/
The current behavior
It shows the mentions when we click the word in the list
The expected behavior
It should not trigger the mentions if it is not a mention.
The text was updated successfully, but these errors were encountered: