Skip to content

Reload code editor when opening and closing the comments tab #1145

@Rokt33r

Description

@Rokt33r

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)

Submitted pull Requests


Become a backer now!

Or submit a pull request to get the deposits!

Tips

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛Issue concerns a bug.funded on issuehunt 💵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!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions