
Current behavior
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.
IssueHunt Summary
Backers (Total: $20.00)
Submitted pull Requests
Tips