-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Fix toggle view breaking current document position #2606
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
Is there something else I need to do before the review? |
|
No, it's just I'm a little bit busy. I'll try to review this as soon as possible. |
|
Can you fix the conflict? Thank you. |
Insecure Use of Regular Expressions (1)More info on how to fix Insecure Use of Regular Expressions in Javascript. Insecure Use of Language/Framework API (1)More info on how to fix Insecure Use of Language/Framework API in Javascript. Happy with the results? Give your feedback. |
|
I resolved the conflicts but I really don't understand what's going on with guardrails. Could you please advice me on what to do? The line it is referring to aren't a part of my pull request. |
|
Please ignore it, the bot is crazy:smile: |
ZeroX-DG
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm very sorry for the long wait 😢 Can you fix your code please?
|
|
||
| // "Remember" top line number (property of grand-parent component). | ||
| const currentLineAtTop = this.editor.lineAtHeight(this.editor.getScrollInfo().top, 'local') + 1 | ||
| this.props.topLine.number = currentLineAtTop |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Modifying props is consider as anti-pattern for React. Can you do it some otherway? maybe notify parent to update instead of directly modifying like this
|
@Erroler can you resolve the conflict and change your code please? If you not interested in this PR anymore, I'll take over this after a week |
Feel free to take over. |
Fixes Issue #2563