BoostNote-App icon indicating copy to clipboard operation
BoostNote-App copied to clipboard

Reload code editor when opening and closing the comments tab

Open Rokt33r opened this issue 4 years ago • 1 comments

Issuehunt badges

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)

Become a backer now!

Or submit a pull request to get the deposits!

Tips

Rokt33r avatar Sep 07 '21 00:09 Rokt33r

@boostio has funded $20.00 to this issue.


issuehunt-oss[bot] avatar Sep 14 '21 08:09 issuehunt-oss[bot]