Async decorations: redecorate() causes cursor jump #4832
Replies: 1 comment
-
|
Tracked here ianstormtaylor/slate#5987 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm calling editor.api.redecorate() after an async request to update decorations. The decorations update correctly, but the cursor jumps to a different position.
CodeSandbox: https://codesandbox.io/p/sandbox/crazy-dubinsky-l63jdj
Steps to reproduce:
Questions:
What's the recommended way to update decorations after an async request without cursor jump?
Beta Was this translation helpful? Give feedback.
All reactions