-
-
Notifications
You must be signed in to change notification settings - Fork 647
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
Mentioning at the beginning of a line and before other text causes a JavaScript error #1843
Comments
Also encountered this issue, but unfortunately I don't understand how to fix it. Combobox itself is not visible too in that situation, I think the root of it is |
Further investigation leads me to think that it's because when creating the mention_input node the selection moves to Same for when there is already an inline and the trigger is typed right next to it (and there is already a space after). It creates the mention_input, then a leaf node, then the selection is set to where the mention_input was originally created. |
I also investigated this and came to the same conclusion as @PibeG. Slate inserts an empty text node before the mention input to fulfil this normalization constraint:
|
Description
Same as with the issue #1232, trying to create a mention at the beginning of a line and before other text.
Steps
Environment
Funding
The text was updated successfully, but these errors were encountered: