-
Notifications
You must be signed in to change notification settings - Fork 406
Reload code editor when opening and closing the comments tab #1145
Copy link
Copy link
Open
Labels
bug 🐛Issue concerns a bug.Issue concerns a bug.funded on issuehunt 💵Issue has received funding that will be rewarded to the contributor solving this issue.Issue has received funding that will be rewarded to the contributor solving this issue.help wanted 🆘Pull request/issue requires extra help from the community. Check these out if you're new!Pull request/issue requires extra help from the community. Check these out if you're new!
Metadata
Metadata
Assignees
Labels
bug 🐛Issue concerns a bug.Issue concerns a bug.funded on issuehunt 💵Issue has received funding that will be rewarded to the contributor solving this issue.Issue has received funding that will be rewarded to the contributor solving this issue.help wanted 🆘Pull request/issue requires extra help from the community. Check these out if you're new!Pull request/issue requires extra help from the community. Check these out if you're new!
Current behavior
The cursor position of the editor is broken after opening or closing the comments tab.
How to fix
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)
Submitted pull Requests
Become a backer now!
Or submit a pull request to get the deposits!
Tips