Skip to content

Commit

Permalink
fix: react-shape this.selectors must valid (#4374)
Browse files Browse the repository at this point in the history
Co-authored-by: 魄兵 <[email protected]>
  • Loading branch information
webMasterMrBin and 魄兵 authored Aug 14, 2024
1 parent 9f200a2 commit 753bc29
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 753bc29

Please sign in to comment.