BoostIO/BoostNote-App

Do you want to work on this issue?
You can request for a bounty in order to promote it!
Reload code editor when opening and closing the comments tab #1145
Rokt33r posted onGitHub
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()
incloud/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.