diff --git a/packages/x6/src/view/edge.ts b/packages/x6/src/view/edge.ts index 8ab7a13b060..98502e2f17c 100644 --- a/packages/x6/src/view/edge.ts +++ b/packages/x6/src/view/edge.ts @@ -406,7 +406,7 @@ export class EdgeView< this.cleanCache() this.updateConnection(options) - const attrs = this.cell.getAttrs() + const { text, ...attrs } = this.cell.getAttrs() if (attrs != null) { this.updateAttrs(this.container, attrs, { selectors: this.selectors,