Skip to content

Commit

Permalink
Uses an empty text node instead of a string for svg group labels
Browse files Browse the repository at this point in the history
  • Loading branch information
daveaglick committed Dec 9, 2016
1 parent 4984f9e commit 0187407
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/diagrams/flowchart/flowRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ exports.addVertices = function (vert, g) {
break;
case 'group':
_shape = 'rect';
verticeText = '';
// Need to create a text node if using svg labels, see #367
verticeText = conf.htmlLabels ? '' : document.createElementNS('http://www.w3.org/2000/svg', 'text');
break;
default:
_shape = 'rect';
Expand Down

0 comments on commit 0187407

Please # to comment.