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:
@@ -47,7 +47,7 @@ export const draw = function (text, id) {
|
||||
elem.setAttribute('height', '100%')
|
||||
// Set viewBox
|
||||
elem.setAttribute('viewBox', '0 0 ' + w + ' ' + h)
|
||||
const svg = d3.select('#' + id)
|
||||
const svg = d3.select(`[id="${id}"]`)
|
||||
|
||||
// Set timescale
|
||||
const timeScale = d3.scaleTime()
|
||||
|
Reference in New Issue
Block a user