Skip to content

Commit

Permalink
Cell merge backwards compatiblity 2 (facebook#4268)
Browse files Browse the repository at this point in the history
  • Loading branch information
zurfyx authored Apr 5, 2023
1 parent a939906 commit d835a4b
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 @@ -109,10 +109,10 @@ export class TableCellNode extends DEPRECATED_GridCellNode {
if (this.__width) {
element.style.width = `${this.__width}px`;
}
if (this.__colSpan !== 1) {
if (this.__colSpan > 1) {
element.colSpan = this.__colSpan;
}
if (this.__rowSpan !== 1) {
if (this.__rowSpan > 1) {
element.rowSpan = this.__rowSpan;
}

Expand Down

0 comments on commit d835a4b

Please sign in to comment.