mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-18 06:49:47 +02: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
|
||||
})
|
||||
|
||||
rectangles.append('a').attr('href', function (d) {
|
||||
/* All rectangles are clickable. If d.link is not specified, '' is returned */
|
||||
return d.link
|
||||
})
|
||||
.attr('id', function (d) { return d.id + '-text' })
|
||||
rectangles
|
||||
.append('text')
|
||||
.attr('id', function (d) { return d.id + '-text' })
|
||||
.text(function (d) {
|
||||
return d.task
|
||||
})
|
||||
|
Reference in New Issue
Block a user