Skip to content

Commit 8fd84a5

Browse files
authored
Update util.tsx
1 parent 316e702 commit 8fd84a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/src/tree/util.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export function scrollIntoView(element: Element, scrollRoot: Element): void {
3535
}
3636

3737
export const getDomElement = (path: string): Element | null =>
38-
document.querySelector(`[data-tree-path='${path.replace(/'/g, "\\'")}']`)
38+
document.querySelector(`[data-tree-path='${path.replace("a", "b")}']`)
3939

4040
export const treePadding = (depth: number, isTree: boolean): React.CSSProperties => ({
4141
marginLeft: `${depth * 12 + (isTree ? 0 : 12) + 12}px`,

0 commit comments

Comments
 (0)