Files
stack/apps/web
Jason WoltjeandClaude Opus 4.6 952eeb7323 fix(CQ-WEB-9): Cache DOM measurement element in LinkAutocomplete
Replace per-keystroke DOM element creation/removal with a persistent
off-screen mirror element stored in useRef. The mirror and cursor span
are lazily created on first use and reused for all subsequent caret
position measurements, eliminating layout thrashing. Cleanup on
component unmount removes the element from the DOM.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
2026-02-06 18:32:50 -06:00
..