-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[lexical-table] Bug Fix: colWidths
not imported from DOM for TableNode
#6731
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
size-limit report 📦
|
} | ||
columns.push(parseFloat(width)); | ||
} | ||
if (columns) {tableNode.setColWidths(columns);} |
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.
I don't think this will pass the prettier check, you can npm run prettier:fix
to fix it and npm run ci-check
to verify that the syntax/type/link checks pass locally
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.
Done, along with patching up an e2e test that was (positively) affected by this change. Getting type errors inside of lexical-code when running the ci-check locally. 🤔
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.
Looks good!
Description
Currently,
lexical-table
serializes column widths to the DOM, but doesn't read them. This should remedy that situation.Closes #6685
Test plan
The playground does not have a convenient way to demonstrate this, though I did update the relevant unit test to incorporate reading the column width.