mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-07 06:14:14 +01: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