BoostNote-App
BoostNote-App copied to clipboard
Reload code editor when opening and closing the comments tab
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.tsxshould 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)
-
boostio ($20.00)
Become a backer now!
Or submit a pull request to get the deposits!
Tips
- Checkout the Issuehunt explorer to discover more funded issues.
- Need some help from other developers? Add your repositories on IssueHunt to raise funds.
@boostio has funded $20.00 to this issue.
- Submit pull request via IssueHunt to receive this reward.
- Want to contribute? Chip in to this issue via IssueHunt.
- Checkout the IssueHunt Issue Explorer to see more funded issues.
- Need help from developers? Add your repository on IssueHunt to raise funds.