Skip to content

Commit

Permalink
Add tbody and thead tags to TableObserver (#6139)
Browse files Browse the repository at this point in the history
  • Loading branch information
Piechota authored May 21, 2024
1 parent 69161e7 commit b2699b1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/lexical-table/src/LexicalTableObserver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,12 @@ export class TableObserver {
const target = record.target;
const nodeName = target.nodeName;

if (nodeName === 'TABLE' || nodeName === 'TR') {
if (
nodeName === 'TABLE' ||
nodeName === 'TBODY' ||
nodeName === 'THEAD' ||
nodeName === 'TR'
) {
gridNeedsRedraw = true;
break;
}
Expand Down

0 comments on commit b2699b1

Please sign in to comment.