-
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: Inserting a table from external source can lead to Lexical crash #5662
Comments
@vect-spasquereau Sorry I'm on leave at the moment so I haven't had a chance to dig through old issues but did I mention working on something like that? Or did I cause a regression here? |
@birtles sorry I didn't notice you are on leave. I just checked the file history and saw you were the last one implementing/refactoring the LexicalSelection -> removeTextAndSplit and LexicalSelection -> splitNodeAtPoint functions. I assumed it could mean something for you 🙂 |
well, that was a wrong lead. Fixing the |
Not at all! GitHub doesn't make that information very visible.
I'm afraid I haven't touched lexical code since that patch. It sounds like you worked it out though! |
Hello there. I'm working with lexical tables and I was trying to implement background color control. I was testing with tables copied from external resources (google doc, google spreadsheet). Lexical is able to import the tables, but is crashing when I trying to leave the table.
Lexical version: 0.13.1
Steps To Reproduce
https://www.loom.com/share/dc72b967351a49afa1de3e5f0d1d7b66?sid=c3b11039-a4fd-4877-a176-74204fd36c4a
Link to code example: reproductible in Lexical playground
After investigation, I think Lexical is going in an infinite loop in LexicalSelection -> removeTextAndSplitBlock
(@birtles I think you've been working on this 👀)
The text was updated successfully, but these errors were encountered: