Uncaught TypeError: Cannot read properties of undefined (reading 'cells')#1912
Uncaught TypeError: Cannot read properties of undefined (reading 'cells')#1912BryanValverdeU merged 3 commits intomasterfrom
Conversation
|
Do you know which scenario this files can be undefined? |
A table with no rows it looks like. I am able to repro adding |
Do you if some issue is just deleting the cells and not the table element? |
I think when that happens we delete the table |
…ls') (#1912) * fix * do not create the table editor if no rows * fix
…ls') (#1912) * fix * do not create the table editor if no rows * fix
* Uncaught TypeError: Cannot read properties of undefined (reading 'cells') (#1912) * fix * do not create the table editor if no rows * fix * bump
Fix Uncaught TypeError: Cannot read properties of undefined (reading 'cells')
Callstack
webpack://.../roosterjs-editor-plugins/lib/plugins/TableResize/editors/TableEditor.ts cells 117
webpack://.../roosterjs-editor-plugins/lib/plugins/TableResize/TableResize.ts onMouseMove 125
webpack://.../roosterjs-editor-core/lib/coreApi/attachDomEvent.ts beforeDispatch 27
Do not create the TableEditor if the table do not have rows. to prevent the issue. Also add a null check on the line that cause the regression