-
Notifications
You must be signed in to change notification settings - Fork 101
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
fix(ui-markdown-editor): fixes cursor movement around headings - I260 #262
Conversation
@irmerk Is this ok now? |
Looks like it! Still want to change the commit and PR title to our format. NOTE: This is built off #261 |
@irmerk I'll get to that tomorrow for sure. Really appreciate the help. |
…rdproject#260 Signed-off-by: d-e-v-esh <[email protected]>
@irmerk Is the title good? |
It looks like the cursor still jumps to the line above the heading if you refresh the page and don't click anywhere, then press enter. See the recording for more detail |
@Michael-Grover That is true... Do you have any idea what might be causing the problem? Can it be some memoized value that gets updated when we interact with the site? |
That could be the case. This might even be a bug deep within Slate, it could be useful to check there. |
@Michael-Grover @irmerk It might be some sort of bug in Slate at someplace, but in this case I think I have found what is causing the main problem and it mostly fixes all the issues. |
I'd have to look into it further, but I believe that comes from #220 |
@irmerk Thanks! I think I fully understand it now. Working on fixing this. |
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.
LGTM! Thank you.
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.
Observations from @Michael-Grover here still need to be fixed.
Signed-off-by: d-e-v-esh <[email protected]>
Signed-off-by: d-e-v-esh [email protected]
Closes #260
Changes
+ Transforms.move(editor, { distance: 1, unit: 'character' })
Related Issues
Author Checklist
Ensure you provide a DCO sign-off for your commits using the
--signoff
option of git commit.Vital features and changes captured in unit and/or integration tests
Commits messages follow AP format
Extend the documentation, if necessary
Merging to
master
fromfork:branchname
Manual accessibility test performed