mirror of
https://github.com/TecharoHQ/anubis.git
synced 2026-06-11 06:47:59 +00:00
380d7007ba
The useEffect registered a toggle listener on the <details> element but never removed it, which could leak handlers on remounts or in tests. Extract the handler to a named function and return a cleanup that calls removeEventListener. Assisted-by: Claude Opus 4.6 via Claude Code Signed-off-by: Xe Iaso <me@xeiaso.net>