You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 12, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on May 12, 2026. It is now read-only.
Reload code editor when opening and closing the comments tab #1145
The cursor position of the editor is broken after opening or closing the comments tab.
How to fix
Refresh codemirror after opening/closing the comments tab. Executing editorRef.current.refresh() in cloud/components/Editor/index.tsx should be enough.
Codemirror is emulating cursor position based on its container size. But it cannot detect size changes of the container. So we need to refresh it manually.
Activity
issuehunt-oss commentedon Sep 14, 2021
@boostio has funded $20.00 to this issue.
fix: Refresh code editor when toggling comments tab