Skip to content

Commit e065253

Browse files
committed
fix: Assign proper namespaces to foreignObject children
1 parent 2d01c54 commit e065253

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/diagrams/sequence/svgDraw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ const _drawTextCandidateFunc = (function() {
532532
.attr('height', height);
533533

534534
const text = f
535-
.append('div')
535+
.append('xhtml:div')
536536
.style('display', 'table')
537537
.style('height', '100%')
538538
.style('width', '100%');

src/diagrams/user-journey/svgDraw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ const _drawTextCandidateFunc = (function() {
370370
.attr('position', 'fixed');
371371

372372
const text = f
373-
.append('div')
373+
.append('xhtml:div')
374374
.style('display', 'table')
375375
.style('height', '100%')
376376
.style('width', '100%');

0 commit comments

Comments
 (0)