Skip to content

Commit

Permalink
fix: set view descriptor expando property on text nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
tilgovi committed Aug 9, 2024
1 parent 7395a5b commit c32cc45
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/TextNodeView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ export class TextNodeView extends Component<Props> {
this.viewDescRef.outerDeco = decorations;
this.viewDescRef.innerDeco = DecorationSet.empty;
this.viewDescRef.dom = dom;
// @ts-expect-error We have our own ViewDesc implementations
this.viewDescRef.dom.pmViewDesc = this.viewDescRef;
this.viewDescRef.nodeDOM = textNode;
}

Expand Down

0 comments on commit c32cc45

Please sign in to comment.