Skip to content

Commit c09bf02

Browse files
fix textpath refs on angular/firefox
someone is breaking fragment references on angular/firefox see dc-js/dc.js#1079 for more details
1 parent 9d8dd8d commit c09bf02

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/diagram.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1484,7 +1484,8 @@ dc_graph.diagram = function (parent, chartGroup) {
14841484
.attr('startOffset', '50%')
14851485
.attr('xlink:href', function(d) {
14861486
var id = _chart.textpathId(d);
1487-
return '#' + id;
1487+
// angular on firefox needs absolute paths for fragments
1488+
return window.location.href.split('#')[0] + '#' + id;
14881489
});
14891490
var textPaths = _defs.selectAll('path.edge-label-path')
14901491
.data(wedges, _chart.textpathId);

0 commit comments

Comments
 (0)