Skip to content

Commit

Permalink
fix: react-shape this.selectors must valid
Browse files Browse the repository at this point in the history
  • Loading branch information
魄兵 committed Jul 31, 2024
1 parent 9f200a2 commit 03011c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/x6-react-shape/src/view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ export class ReactShapeView extends NodeView<ReactShape> {
}

getComponentContainer() {
return this.cell.prop('useForeignObject') === false
return this.selectors && (this.cell.prop('useForeignObject') === false
? (this.selectors.content as SVGElement)
: (this.selectors.foContent as HTMLDivElement)
: (this.selectors.foContent as HTMLDivElement));
}

confirmUpdate(flag: number) {
Expand Down

0 comments on commit 03011c3

Please sign in to comment.