Skip to content

Offline, privacy-first grammar checker. Fast, open-source, Rust-powered

fix: click handler not registering

Elijah Potter437124105a42
diff --git a/src/harper/SuggestionControl.tsx b/src/harper/SuggestionControl.tsx
index 0c21cd606..34d1fd2d6 100644
--- a/src/harper/SuggestionControl.tsx
+++ b/src/harper/SuggestionControl.tsx
@@ -61,7 +61,10 @@ export default function SuggestionControl({ lintBox }: { lintBox: LintBox }) {
mouseUp
);
};
- }, []);
+
+ // The lint is just plain _wrong_ here.
+ // eslint-disable-next-line react-hooks/exhaustive-deps
+ }, [underlineRef.current, popoverRef.current]);
return (
<>