Skip to content

Commit

Permalink
Cell merge backwards compatiblity (facebook#4267)
Browse files Browse the repository at this point in the history
  • Loading branch information
zurfyx authored Apr 5, 2023
1 parent e27acc4 commit a939906
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/lexical-table/src/LexicalTableCellNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,10 @@ export class TableCellNode extends DEPRECATED_GridCellNode {
const maxWidth = 700;
const colCount = this.getParentOrThrow().getChildrenSize();
element_.style.border = '1px solid black';
if (this.__colSpan !== 1) {
if (this.__colSpan > 1) {
element_.colSpan = this.__colSpan;
}
if (this.__rowSpan !== 1) {
if (this.__rowSpan > 1) {
element_.rowSpan = this.__rowSpan;
}
element_.style.width = `${
Expand Down

0 comments on commit a939906

Please sign in to comment.