Allow table update on attribute changes in case of extending (overriding) TableNode
Hi,
I am trying to extend TableNode by overriding it with my CustomTableNode that will include some properties for the entire table. Based on that properties the class attribute will be changes (some classes added to the table element)
Everything works fine so far except TableObserver. It doesn't include attributes or attributeFilter options, so it doesn't react on any class changes on table element.
Would it be possible to add attributes into the options? I am not too familiar with details and may miss some caveats.
https://github.com/facebook/lexical/blob/cad2861343c1cffdfdb27bd5aed59198f43dc32f/packages/lexical-table/src/LexicalTableObserver.ts#L153-L156
P.S. I've tried to enabled updateDOM in the CustomTableNode but it seems to break observer in some way, selection and some other stuff start to work flaky.