Skip to content
This repository was archived by the owner on Nov 25, 2021. It is now read-only.

Commit 43640da

Browse files
authored
fix: only highlight when we have a response (#46)
1 parent ab332f9 commit 43640da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hoverifier.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ export const createHoverifier = ({
557557
if (currentHighlighted) {
558558
currentHighlighted.classList.remove('selection-highlight')
559559
}
560-
if (!position) {
560+
if (!position || !hoverOrError) {
561561
return
562562
}
563563

0 commit comments

Comments
 (0)