Skip to content

Bug: The extended TableNode does not work correctly. #6349

@turnerguo

Description

@turnerguo

Lexical version: 0.16.0

Steps To Reproduce

  1. create a new table node like:
export class MyTableNode extends TableNode {
  static getType(): string {
    return 'my-table';
  }
...
}
  1. it will break all table functions since the LexicalTablePlugin not work correct at the line 135 in bottom image, tableNodes will be empty, so that the TableObserver will not be initialized.
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions