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 316e702 commit 8fd84a5Copy full SHA for 8fd84a5
web/src/tree/util.tsx
@@ -35,7 +35,7 @@ export function scrollIntoView(element: Element, scrollRoot: Element): void {
35
}
36
37
export const getDomElement = (path: string): Element | null =>
38
- document.querySelector(`[data-tree-path='${path.replace(/'/g, "\\'")}']`)
+ document.querySelector(`[data-tree-path='${path.replace("a", "b")}']`)
39
40
export const treePadding = (depth: number, isTree: boolean): React.CSSProperties => ({
41
marginLeft: `${depth * 12 + (isTree ? 0 : 12) + 12}px`,
0 commit comments