mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-18 06:49:47 +02:00
Fix CSS cannot select number ID issue
This commit is contained in:
@@ -315,7 +315,7 @@ export const draw = function (text, id) {
|
||||
parser.parse(text + '\n')
|
||||
|
||||
bounds.init()
|
||||
const diagram = d3.select('#' + id)
|
||||
const diagram = d3.select(`[id="${id}"]`)
|
||||
|
||||
let startx
|
||||
let stopx
|
||||
|
Reference in New Issue
Block a user