From b2699b112b141321e81a8d6fc281c7384aea7acd Mon Sep 17 00:00:00 2001 From: Piechota Date: Wed, 22 May 2024 01:54:35 +0200 Subject: [PATCH] Add tbody and thead tags to TableObserver (#6139) --- packages/lexical-table/src/LexicalTableObserver.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/lexical-table/src/LexicalTableObserver.ts b/packages/lexical-table/src/LexicalTableObserver.ts index 358f025043b..33a0a6f427e 100644 --- a/packages/lexical-table/src/LexicalTableObserver.ts +++ b/packages/lexical-table/src/LexicalTableObserver.ts @@ -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; }