mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-17 19:24:10 +01:00
Removed <a> tag, moved id attribute to text section
This commit is contained in:
@@ -177,12 +177,9 @@ export const draw = function (text, id) {
|
|||||||
return res + classStr + ' task' + secNum
|
return res + classStr + ' task' + secNum
|
||||||
})
|
})
|
||||||
|
|
||||||
rectangles.append('a').attr('href', function (d) {
|
rectangles
|
||||||
/* All rectangles are clickable. If d.link is not specified, '' is returned */
|
|
||||||
return d.link
|
|
||||||
})
|
|
||||||
.attr('id', function (d) { return d.id + '-text' })
|
|
||||||
.append('text')
|
.append('text')
|
||||||
|
.attr('id', function (d) { return d.id + '-text' })
|
||||||
.text(function (d) {
|
.text(function (d) {
|
||||||
return d.task
|
return d.task
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user