Skip to content

Commit

Permalink
fix: edge does not display the label after setting the label and text…
Browse files Browse the repository at this point in the history
…Wrap (antvis#3892)
  • Loading branch information
qiufeihong committed Sep 7, 2023
1 parent 101e3f9 commit a152965
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/x6/src/registry/attr/text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ export const textWrap: Attr.Definition = {
let wrappedText
let txt = info.text
if (txt == null) {
txt = attrs.text
// the edge of the label is assigned to txt
txt = attrs.text || elem?.textContent
}

if (txt != null) {
Expand Down

0 comments on commit a152965

Please sign in to comment.