We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
.
1 parent 4497ca8 commit 6dc3de3Copy full SHA for 6dc3de3
src/utils/dom.ts
@@ -8,7 +8,7 @@ import { layoutChildren } from './layout'
8
const $d = document
9
export const findEle = function (this: MindElixirInstance, id: string, el?: HTMLElement) {
10
const scope = this?.el ? this.el : el ? el : document
11
- const ele = scope.querySelector<Topic>(`[data-nodeid=me${id}]`)
+ const ele = scope.querySelector<Topic>(`[data-nodeid="me${id}"]`)
12
if (!ele) throw new Error(`FindEle: Node ${id} not found, maybe it's collapsed.`)
13
return ele
14
}
0 commit comments