Skip to content

Commit 201e233

Browse files
committed
fix: bug causing white screen when mouse moves in preview pane (#88)
1 parent 72672ee commit 201e233

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Preview.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function Preview() {
2929
const htmlRoot = useRef();
3030

3131
const { suggestion } = getQueryAdvise({
32-
rootNode: htmlRoot.current ? htmlRoot.current.firstChild : null,
32+
rootNode: htmlRoot,
3333
element: highlighted,
3434
});
3535

0 commit comments

Comments
 (0)